1 (edited by JoomlaEric 2011-02-15 21:43:56)

Topic: upload stops at 20.971.520 bytes in Strato shared hosted server

I used the standard examples with only a modification of the upload path:
$targetDir = "./plupload"; and set the file size limit to 1000mb.
1 mb chuncks, multiple_queues : false

This works fine with the flash, jquery_ui and html5 uploaders on my home server.
On the Strato server, it works up to abt. 20.5 mb, if the file is larger then all above methods stop at 20.971.520 bytes written.
The browser shows an error triangle; the jquery_ui also displays IO error. Error #2032

The php settings are:
The setting of PHP configuration parameter 'memory_limit' is [128M]
The setting of PHP configuration parameter 'post_max_size' is [8M]
The setting of PHP configuration parameter 'upload_max_filesize' is [2M]

Any ideas?

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

Could you remove flash from the list of your runtimes and try again? Let us know if it uploads properly.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

OK, will try that tonight and let you know. Do you think flash might be active despite i use the html5 uploader from the "all-in-one" page?

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

It depends on a browser actually. It's just that flash likes to throw weird Error #2032 now and then.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

I stripped down the queue_widget.html example until only the html5 part was left. Exactly the same: works on my home server, not on Strato.
I tried reducing the chunk size to 100 kb, except that it was a lot slower, same thing again. 20.971.520 bytes, but now after 3 minutes or so.
So I'm sure it's not a time-out issue either.

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

Ok now that sound weird. Could you try another thing then. Enable Flash again (and only flash), but remove chunking and comment out resize option if you have it. Also make sure that you do not have urlstream_upload option set to true.

Try to upload the file and let us know of result. We would like to help you out from this problem, although it's already quite clear that it is something specific to your Strato shared hosting server.

Also, have you checked if you have enough space on your hosting server? The fact that it stops at exactly same point is quite symptomatic.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

Tried your suggestions. The only thing that makes a difference is turning chunking off. Then, the upload finishes without errors in the browser, but nothing gets written when the file size exeeds the PHP paramameter 'upload_max_filesize' [2Mb]. I cannot change that, Strato's server only reads it's own php.ini, not mine sad

urlstream_upload seems to make no difference. I disabled it like this:
    // Flash settings
    flash_swf_url : '../js/plupload.flash.swf',
    urlstream_upload : false,

Resize was off, and I use zip's for my tests.
There is plenty of room, > 600mb.
Do you have any further ideas?

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

Do you have this page with failing plupload online somwhere?

If you want to see your issue fixed, do not report it here, do it on - GitHub.

9 (edited by JoomlaEric 2011-02-19 17:54:17)

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

Yes, see http://www.acbcoaching.nl/plupload/examples/ here I have made available the following pages
test7.html: html5, 1.8 mb chunks
test7a.html: html5, no chunks
test8.html: flash,  1 mb chunks
test9.html: flash,  no chunks

Thanks in advance!

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

I get blank page.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

Yes, at http://www.acbcoaching.nl/plupload/examples/ you will get a blank page, you have to go to
http://www.acbcoaching.nl/plupload/examples/test7.html and so on smile

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

Ah... ok smile

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

Looks like your Strato server throws: HTTP Error 500 Internal server error at some point. It's very generic error, basically when server doesn't know what caused a failure it throws something like this. Apparently there is some kind of additional constraint on server-side. Have you tried to discuss it with Stratos support desk?

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

I have not discussed this issue with Strato yet, as I guessed they try to prevent too heavy traffic or something similar.  But I will try now to get an answer from them.
Thanks and will keep you informed!

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

I have an answer from the Strato support desk already:
"on the shared hosting servers a limit has been set of 20MB for uploads. Unfortunately this cannot be changed".
It does not say how they did it, unfortunately.
Would it be possible to split uploads in other words start a new upload after let's say 10 chunks? And put everything together after the last upload has finnished?

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

I think they just monitor the size of the file in temp folder...

You probably could do what you say, yourself, like monitor the process on the server side, and once it's close to let's say 10mb, stop it, move partial upload to a different folder, reset the size of the temp file, and continue as usual. Then after everything is complete, you could move that another part to the destination folder too and stick the parts into one file.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

Well, that really exceeds my programming skills!
Strange thing is, phpinfo shows:
   max_file_uploads 20
   upload_max_filesize 10M
   post_max_size 10M
I've asked Strato HOW they implemented the upload limit.
Now they say:
"The limit is in the upload_max_filesize 10MB for Powerweb and 20Mb in an Advanced web package".
I have Powerweb, and still can upload 20MB ?!?
It looks like plupload bypasses upload_max_filesize and upload_max_filesize, but then something else happens!
It's not max_file_uploads, because with 1.8 mb chunks it stops at 20 mb too.
Any ideas before I give up?

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

I think they just monitor the size of the file in temp folder...

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

I've hit this 20MB limit b4 as well. In the end I chopped the file into two parts and uploaded individually. Whether this will work for every file type is a different question though.

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

@miketeavey why it shouldn't? You are doing it binary, right?

If you want to see your issue fixed, do not report it here, do it on - GitHub.

21

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

I encountered the same problem JoomlaEric described. My webspace is also hosted by strato. Although I found a way to set the php variables
upload_max_filesize and post_max_size to higher values than I actually need, (I set chunking to 2MB) I get the same HTTP Error 500 every time I try to upload files exceeding 20MB, but sometimes I get the Error even before the filesize on the server hits 20MB!

@JoomlaEric: Did you find a solution to that problem, or did you finally give up?

Re: upload stops at 20.971.520 bytes in Strato shared hosted server

Actually my solution above should work, if you are techie enough to implement it..

If you want to see your issue fixed, do not report it here, do it on - GitHub.