nblgeoweb VIP
Total posts: 178
09 May 2017 13:35

I have an installation with Cobalt 8.735 and Joomla 3.6.5. I'm using an upload field in my project. When I have it set to use HTML4 as the upload method, it seems to work fine. If I set the upload method to HTML5, it doesn't work. I can select the file and it seems to upload (progress bar and eventally says uploaded) but if I save the record containing the uploaded file, the file is not saved in the upload field. I've tried in IE11, Chrome 58, and Firefox 53.

Any ideas on what I can look for to firgure out why that is happening? I would think HTML5 uploading would work with all those browsers now.

Last Modified: 16 May 2017

Comments have been disabled for this article and works only in read only mode.

nblgeoweb VIP
Total posts: 178
10 May 2017 17:16

I did some more testing and it looks like it's a little more complicated than I thought. HTML5 works sometimes...

Somehow it's related to the file being uploaded. In all cases, I select a file and upload it (auto or manual, doesn't matter), and the file gets saved to the filesystem on the web server. The problem is that it's not written to the database. It seems to work with some files but not others. It doesn't seem to be related to the file name. With the files that work, I can change the extension and it still works. With the files that don't work, I can rename them to have the name of a file that works and it still doesn't work.

I have tons of disk space available. All of the test files are very small (500kb or less).


nblgeoweb VIP
Total posts: 178
11 May 2017 12:35

More info....

After a painstaking set of tests I've narrowed down the problem to not being able to upload files greater than 101400 bytes. The file DOES NOT get created on the web server in the upload folder when uploaded with a size larger than that as I first thought.

I found the file though... it's being written to tmp! The file in tmp is being truncated to 101400 bytes as well. After a quick search of the forum I see a thread where someone else had this problem:

http://www.mintjoomla.com/support/community-forum/item/48-cobalt-8/6374-upload-field-files-above-100-k-lands-in-joomla-s-tmp-folder.html

But there was no resolution. I've had this working before using the same template so I don't think there are any conflicts there. Any ideas?


nblgeoweb VIP
Total posts: 178
16 May 2017 09:14
Powered by Cobalt