in general the file upload plugin works well.
until i upload a .pptx file (18MB), file upload size is set to unlimited, after the upload proceeds, i get the message: Error 105 – Invalid file type. see attachment.
how can i solve the problem?
Support Forum
why do you have images listed in other file types??? just slows it down…
are you sure the case of the file is right? .pptx is not same as .PPTX
This might be as simple as the maximum upload file size that your php setup will allow. It is not always easy to collect an error in php that was generated in Javascript so the error message may be a misinterpretation.
You host will have imposed a limit to the size of any single file upload. Typically this is 2 MB. So I would suggest you start by checking on that and, if you need it increasing, then ask them if this is permissible.
You need to be aware also that if you are putting up an 18MB file that your users can then download they will be eating away at your bandwidth every time they do so as well as consuming server resources during the process.
in general i agree with you, in this case we deal with files in this size for a small group of users.
the servers php memory limit is set to 90MB, the memory limit in wp-config.php is also 90MB.
any ideas?
thx
I was referring to the upload file size not the php memory size.
Did you see Mr Papa’s point about case?
yes, i did read mr. papas post and removed the image file types and also added PPTX as a uploadable filetype.
the upload_max_filesize on the server is 40M
but still the same error message: xxx.pptx: Error 105 – Invalid file type
any idea?
well, not sure what might be going south… I dont think its a file size upload… the error is only thrown when the uploaded file extension does not match an allowed extension… so unless the whole filename gets dorked on upload, not sure…
next step would be to check the temp php upload directory and see if the file is getting uploaded and if filename is intact…
sorry, i’m not an expert with this. how can i find and access the temp php upload directory?
you would need ssh (ie root access) access to your server… certainly get with dedicated server or vps and the decent shared hosting folks… would have to look into your php.ini to find exact location, but typically, its /tmp
mmm the tmp setting has no value so that means the default I believe. Hopefully Steve can confirm that.
I did have two questions. (1) How quickly does this return message appear? Is it instantly or after a long wait? and (2) what, exactly, is the file name you are trying to upload?
I think empty will default to /tmp
but you could always do a php function call sys_get_temp_dir() to find out explicitly what its set to…
but if I understand, you can upload fine in general, just not this one powerpoint file? or is that wrong?
@yellow swordfish:
1) it shows the whole upload process, after it is done, the message appears
2) ALBICAN Midterm presentation-EPFL_v1.pptx
@mr. papa
i will try
i can upload files – but i also get the message whwn i try to upload a nearly 20MB pdf file
Just throwing something into the wind here because I haven’t any ideas left at the moment – but could this be the actual session timing out in some way and coming back with a spurious response? After all – file type is tested for very early in the process..
yes. at this point, I believe we have not even move the file from its php temp file upload location – and done no image processing… so I believe its something in the php upload process.
