Not a bug

tiff files failing to upload

teknik 1 year ago updated by Vlad R 1 year ago 19

when i try to upload tiff files system returns "Failed to upload file. Server error. Please try again later" any other files just uploading correctly. I assumed that could happen because of ImageMagick and it wasn't installed to system, i've installed but it doesn't helped, no php errors in the error log.

Any ideas ?

Answer

Answer
Not a bug

Here's what is causing the problem: your TIFF files are very large and your PHP is configured with too small of a "memory_limit". PHP fails to read the Exif data from the file because it reaches the allowed memory limit. It fails with a "fatal" PHP error, which is impossible to handle in a friendly way by FileRun. We tried but there is no way to make this fail in a silent way and allow FileRun to just skip it.

The only solution is to increase the value of "memory_limit" in your PHP configuration.

can you add any other files that are over 101MB in size? 

i've tried an MP4 file (407MB) and RAR file (119MB) both files are uploaded without any problem.

Other strange thing is when i change the file extension to anything else (bmp,zip,rar,iso,jpeg) it uploads without any error.

Any error logged in FileRun's user activity logs?

checked apache2 logs and activity log but no errors.

Attached file to this topic so you can test.



The HTTP logs will not help much. Look in FileRun's user activity log (inside FileRun's control panel). Other logs that might help would be the PHP error_log (if this is a PHP related problem).

activity log is not showing any error and my php_error file is also empty


is there any other option or maybe some plugin(maybe some sort of debug bar) to catch errors ?

y.

Update : i've antoher filerun installation is under my company's website, the version was :2017-09-18 tried same file uploaded without any problem. Updated filerun to 2018.02.13 and re-uploaded the same file and uploaded without any problem. 

This thing is drives me crazy no error at any log files but not uploading the file.

Local server (returning error one) runs on Ubuntu 16.04.6 LTS and without tiff files everything works just fine.

Update : installed filerun to windows with xampp latest, it's not uploading the same file, it returns the same error but the older versions of filerun works just fine with same file.

Any updates on developer side yet ?

I have latest version of FileRun installed on Windows running Abyss Server and have tried uploading TIF files ranging from 50MB to 200MB and have had no issues.  They all upload perfectly.

It is very strange you are having such problems only with TIF files.

Is it possible something is corrupting your TIF files or interrupting the upload locally?

Hi,

not all tif files causing this problem, when i download a tif file from internet it uploads perfectly. This tif files are creating by our graphical design dept. we are a printing company and using filerun to manage our graphic archive.Designers preparing artworks for customers via Adobe Indesign and they are exporting artwork as tif file and when they try to upload most of them uploading well but some of them returns error, we couldn't figure it out what is the problem yet. 

We have created two tif files with using same plugins,actions etc. everything is the same only the artwork is different, one of them uploaded without any problem but the other one returned error.

Strange thing is older versions of filerun works just fine only the latest version causing this problem.

Have you tried using different browsers for the upload? 

Does the older version of FileRun you tested use the same PHP and ION version as the new one? 

yes, tested with Chrome,Firefox,Opera (in windows & MAC) + Safari (MAC only), i forgot to mention that it returns error but  when you click to cancel on the error page you see that file is uploaded (it shows on the list),original file is 101MB but on the list it shows as 122MB, when you download(it becomes 122MB) and double click to see preview looks ok, but when you try to open with photoshop or adobe indesign program says file is damaged or unknown format.

There are no any error on php_log file or activity log so i thought maybe it's because our server causing the problem (it's a brand new Dell T130 with 12TB raid), i've created windows & linux virtual machines on the other server, installed fresh OS and installed latest version of the filerun to test same files but result is not changed.

We are a small company but groving, there will be hiring to our graphical design dept. in next month and we are going to buy +5 user licence if i can't solve the issue then i need to find another solution but i don't want to give up on filerun, i'm using filerun since 3 years at home and at work it's best file management system for me.

Do you find a solution for this problem? We have exactly the same problem with our installation... 

Closed for lack of information

We were not able to reproduce this problem and we had no other reports of it, other than on this page.

If any of you is willing to provide remote access to the FileRun installation, we would troubleshoot it for you. Contact us with the credentials: https://filerun.com/contact

Ok, we'll contact you. 


The problem only occurs with tif files with layers created in photoshop. If the setting "reduce to one level" is selected when saving the tif, the upload works without problems. Curious is also: the file is actually completely uploaded. You can see it, download it, you can also see the generated thumbnail. Only when uploading you get the error message.

Ok, it probably fails to process its metadata. It would actually help a lot if you can provide a sample file.

Answer
Not a bug

Here's what is causing the problem: your TIFF files are very large and your PHP is configured with too small of a "memory_limit". PHP fails to read the Exif data from the file because it reaches the allowed memory limit. It fails with a "fatal" PHP error, which is impossible to handle in a friendly way by FileRun. We tried but there is no way to make this fail in a silent way and allow FileRun to just skip it.

The only solution is to increase the value of "memory_limit" in your PHP configuration.