Welcome Guest, Not a member yet? Register   Sign In
File upload - type is not allowed
#1

[eluser]predat0r[/eluser]
One of my customer has problem with file uploads, especially with .doc files. Sometimes he can't upload files from his office - gets file type is not allowed message - , but when he tries at home, the process is successful. If he sends me the file to upload by me, I always do it without any problem. I updated the mimes.php to the latest types for word documents of course (found here some forum posts about that).
But, sometimes he can upload other .doc files. So where is the error, on server/intranet, upload php script, mime types? If the script doesn't change, the mimes are extended, why this happens sometimes? And why I can upload 10 docs from 10?
Thanks
#2

[eluser]Mauricio de Abreu Antunes[/eluser]
Hello,

Even the file has .doc extension, sometimes it is not ".doc" for PHP.
Try to debug your code in his machine and echo file type.
What are your allowed types in config array?
#3

[eluser]meigwilym[/eluser]
You could try some logging functions to see what happens in the backend. Aak him for the time when he uploads at work/home then compare the log files.

Mei
#4

[eluser]predat0r[/eluser]
Thank you, I'll do that soon.




Theme © iAndrew 2016 - Forum software by © MyBB