问题
The uploadify plugin for JQuery seems very good and works for most file types. However, it allows me to upload all file types apart from the ones I need.
Uploads of any other type work.
- I have already tried changing the fileExt parameter and also tried removing it altogether.
- I have testing in Google Chrome, IE7 and Firefox and none work for these file types.
- I have a ton of local projects already and uploading is not an issue on any other project, I even use the same example files (This is the first time I have used Uploadify)
Is there a known reason for this behaviour?
EDIT: Have found the issue. I had forgotten to add my usual .htaccess file to the example project which amends PHP to allow large file sizes. I will hang my head in shame for the rest of the day.
回答1:
I am ashamed to admit that I did not follow the list of dumb things to check.
The issue was actually because my php upload setting was set too low.
I have now added this to my php ini:
upload_max_filesize = 1024M
post_max_size = 1024M
I use a .htaccess file on all my projects but obviously forgot to add it when setting up this uploadify example.
来源:https://stackoverflow.com/questions/2492155/uploadify-refuses-to-upload-wmv-flv-and-mp4-files