It is possible to restrict the upload process to choose only one file. Now a person can select various files from pc, Im trying to find a way to restrict this feature just to one file.
Thanks in advance.
|
It is possible to restrict the upload process to choose only one file. Now a person can select various files from pc, Im trying to find a way to restrict this feature just to one file. Thanks in advance. |
||||
|
|
|
WordPress contains 2 media up-loaders. The Flash uploader allows the selection of multiple files while the browser uploader only allows 1 file at a time. To disable the Flash uploader add the following filter to functions.php
EDITAfter further investigation it's probably not a great idea to use create_function. A beter way to remove the filter would be:
|
|||||||||
|
|
The answer Chris gave is nice but doesnt really limit the upload to one file only, its just one file at a time, so the user can upload as many as he wants, but you can also limit the upload on the flash uploader to only one file using |
|||
|
|
|
You can modify the Flash uploader to accept only one file via the
You can output this after the SWFUpload code via the This code does not add a handler to the Of course, this does not prevent people to use the uploader multiple times. See Bainternet's reference for a solution to that. |
|||
|
|