Code

Discussion on HTML5 File Upload

Discussion on HTML5 File Upload

By
Cart 674 sales
stbeets

stbeets supports this item

Supported

186 comments found.

Hi there,

Does this work along with Jquery 3.0?

Thanks, Suma

Hi, for the html5upload.remove.php, the only value passed is the file name. For a given house, I show the photos of this house with the possibility of deleting it, but the photos are stored in different directories following a “public_html/img/year/month” structure to store images. How can I pass the complete url of the image, in order to reach it in this structure of directories and being able to delete it? the $_POST[] value only shows the name of the image, but not the path. I pass the “house_id” by parameter but for each image there is a different path and cannot pass by $_GET. How to manage? Thanks.

would it be possible to use the plugin with asp classic and combine with other form text fields ? and so the validation (required field) ?

Hi Sander, I purchased your html5 file upload. I am combining with “sortable” jquery plugin, to reorder the images and store this order into the database.

The plugin automatically generates something like ..... for every file item. In order to combine with “sortable”, i need to put inside this DIV the ID of the photo in my database ( ...). Where should I implement this? I cannot find at the js or css file. Or have you got something ready to this stuff?

Regards.

My post_max_size is 128M. Is it enough to use HTML5 File Upload to upload files larger than 150 MB?

no it can not handle larger files then the max post size, sorry

Hey Hi stbeets !

I am not able to uload files, that are bigger than about 50 MB’s. Everything smaller is possible, anything bigger is not.

The transfer starts normally, but then, after about 1 minute, the progress bar turns red and the upload ends.

I cheked the server, where the Php-Info shows allowed uploads-size of 200 MB and is set up correctly, as are my settings of your plugin (data-max-filesize=204800000).

Th error-log of the server shows, that the bigger files are not transferred till the end and therefor the upload gets cancelled.

“[29-Apr-2016 20:44:32 Europe/Berlin] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 69905110 bytes) in Unknown on line 0”

If needed I can send you a login to my site via PM, so you can check yourself.

Thanks in advance for support.

Peter

Hi Peter,

Then i dont know the solution without checking the server or your settings / setup. But this requires me to spend time on it. The support is only for the plugin itself, so if you want me to look into this, i can give you an hourrate to preform this for you. This i will do via email when requested.

Regards,

Sander

Hi Sanders,

Really perfect. Your script is flawless, people of my hosting provider grant, their server-settings are flawless, so the fault obviously must be with me.

Regards

Peter

Hi Peter,

Again, i can not see where the problem is now. I think it is unfair to ask me to solve your hosting problems / settings in my time, dont you believe? So the solution i give you is that i can take a look for you. If there is something wrong with the plugin, you have support for it. But you can not blame me for not spending all my time fixing someone else his server?! It must be a setting, post max size, timeout, post size, etc. The only thing you can do is debug, debug, debug. So watch the errorlogs, see the network traffic, etc. I can (and did) point you in the direction the problem might be in. But i cannot say it’s this or that, too many factors.

Hope you understand the situation.

Regards,

Sander

Hi stbeets,

Bought your uploader but did not succeed in getting it to work.

When uploading, the progress bar starts green, but then, about in the middle till the end, turns red and stays in this colour.

Data-show-errors reports: Error 200 OK;

Firefox Network-Analysis reports: Warning: fopen(/www/aaa/bbb/ccc/tmp/live.jpg): failed to open stream: Permission denied in /www/aaa/bbb/ccc/html5fileupload.php on line 18 Warning: fwrite() expects parameter 1 to be resource, boolean given in /aaa/bbb/ccc/html5fileupload.php on line 19 Warning: fclose() expects parameter 1 to be resource, boolean given in /www/aaa/bbb/ccc/html5fileupload.php on line 20 {result“}

Hope you can help me – Thanks in advance.

Peter

Hi stbeets,

Forget my post, just realized, that the upload folder was write-protected. Plugin working now, although the Bootsrap-reference conflicts in some way with my own CSS. Hoping to be able to fix that, not looking good at the moment.

Greetings

Peter

Hi !

Found a good solution for the problem, caused by the bootstrap.css, which sometimes interfers badly with already existing css code. Maybe useful for others in the same situation:

Visit the below link and create your own “boostrap-iso.css”.

https://formden.com/blog/isolate-bootstrap

Good Luck !

Peter

Hey Peter,

Thanks! we keep that in mind!

Nice but bland. Really do consider Crop, resize & rotate.

Hi, thanks! Crop and resize are in here, rotate is missing, working on it

how to upload to the remote server?

this product(HTML5 File Upload) html code show on abc.com

but I need upload the file to remote server (file.abc.com)

how can I do?

abc.com show html+js

file.abc.com run php?

Many thanks

Hi, this is possible with jsonp, but these are modifications you need to do in the source code. I can do this for you, mail me at sander[at]stbeets.nl for the hours and rate if you need my services.

Thank you, and I have sent an email to you

Hi! Bought the plugin and it’s great!

Having one small issue. My upload bar starts and ends red. It never has a blue or a green state. Has this come up before? Any help would be appreciated.

do you have a url for me, i think the response gives a warning or somehting. Debug the AJAX response (Firefox / Chrome, hit F12 and view the network tab)

Found another comment were you advised they hide some of the PHP errors/warnings and it works fine now. Thx.

Ok, cool, enjoy the plugin!

Hi,

I have a similar issue with another user who posted here about one month ago, and I was able to localize it. The site hangs when I use the uploader, and it looks like it happens only when the suhosin php extension is enabled. Unfortunately, there are a lot of servers using suhosin lately, so other users may experience issues as well. The last time when I had problems was on a namecheap shared hosting, where it is pretty unlikely to change the settings or disable suhosin at all.

Is there a way to make it work?

Thanks!

Hi, when does the site “hang” because when loading the plugin, it is only your browser, when you upload a file, PHP comes into affect. suhosin i dont have any experience with it. I have read up on what it does and it thightens up security. I think the part of disallows inclusion of uploaded files is the boogeyman in this part. I cannot do anything about this, sorry. That’s just how my script works…

Hey, thanks for the great plugin. But is there a possibility to start the upload via javascript like an external button?

Hi, no that’s not possible at this moment.. sorry

hello, i need your support with html5 file upload

Hi, please mail me at sander[at]stbeets.nl with your questions

Is there a way to work with php4?

Hi, no it is not possible, the plugins of GD lib and some functions do not exist in PHP 4. Sorry

Hi

Reading the support documentation you mention custom functions and cite the example:

$(’.html5fileupload.demo_function’).html5fileupload({ onAfterStartSuccess: function(response) { $(’#filename’).val(response.filename); } });

But the code no longer looks like this and I’m struggling to add a follow-up function for both success and failures. The code now looks like:

if (_self.options.onAfterStartSuccess) _self.options.onAfterStartSuccess.call(_self, response);

I’ve had some some success following:

}).done(function(response) { if (response.result == true) {

console.log(JSON.stringify(response));

$(progressbar).find(’.progress-bar’).removeClass(‘active progress-bar-success’).addClass(‘progress-bar-info’).css(‘width’,’100%’); $file.find(’.tools’).empty(); $file.data(‘done’,true);

But ideally I want to incorporate elements of the response JSON into the space occupied by the hidden text box for changing the file name

I could do with understand “where” best to fire my own functions but also to understand how best to show a text response

Thanks in advance

Site is always crashing when I try to upload bigger zip files (200MB). Any thoughts?

which browser? Tried firefox or chrome?

Hi,

Is it possible to change the folder where the file will be upload, depending on which customer (for example, depending on a customerID, will create a folder with his ID).

Also, if a file already exists in the folder, will it rename it?

Thanks in advance.

Hi, yes this is possible to build. you can give a variable in the javascript with every call and let the PHP handle the mapping part. Or maybe based on the login session?!

I’m using the multi-image upload with ajax/json but I’d like to have addition key:value pairs added to the json that is sent.

Is there a simple way to do this, perhaps by adding to the options.data, that does not involve modifying the javascript itself, which is what I’m having to do currently.

Appreciate any help you or anyone else can offer

Many thanks

yes, this can be done with {data: {key: value, key: value}}

I’m using the multi-image upload with ajax/json but I’d like to have addition key:value pairs added to the json that is sent.

Is there a simple way to do this, perhaps by adding to the options.data, that does not involve modifying the javascript itself, which is what I’m having to do currently.

Appreciate any help you or anyone else can offer

Many thanks

Hi re my classic ASP question. I’ve sorted it thanks

All working fine

Thanks

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey