claroline / Claroline

Learning management system
https://www.claroline.com
Other
315 stars 188 forks source link

Upload resource Drag&Drop #271

Closed sleperf closed 11 years ago

sleperf commented 11 years ago

When you upload an .avi file using the drag&drop feature on the resource, the progress bar stay at 100% and the resource is not uploaded. We have this message on the console : "Uncaught SyntaxError: Unexpected token F" and this one on the Network Tab : Fatal error: Call to a member function getClientMimeType() on a non-object in /var/www/html/Claroline/20130902/Claroline/src/core/Claroline/CoreBundle/Controller/FileController.php on line 73

ngodfraind commented 11 years ago

Wich kind of file did you tried to upload ? Is the file uploadable with a form ?

I'm unable to reproduce the issue.

sleperf commented 11 years ago

This is a .avi file generated by a screenrecorder. Here is the exact mime type : $ file --mime-type -b accueil.avi video/x-msvideo

ngodfraind commented 11 years ago

Is your file larger than the post_max_size limit from your php.ini ? Mine was 8mb by default and I had a similar error when I tried to upload large files.

sleperf commented 11 years ago

You a rigth, I have set the upload_max_filesize to 200M but I have forgotten the post_max_size parameter. I change the value and it is working know.