i am setting up upload sections on my site, all for certain items. i know little of php commands, is there an easy way to allow only certain file types within the php script.
(i.e. jpg, gif, bmp for image upload php / swf, flv for video upload php / etc, etc, etc)
i couldnt find any other topics about this in the forum archives
thanks again
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
extension filters have not been implemented. You'd need to write the code to check for the type and reject/accept the upload. This can be done either at front end by changing adding the check in javascript, or at the back end in PHP by examining file headers.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hey guys,
i am setting up upload sections on my site, all for certain items. i know little of php commands, is there an easy way to allow only certain file types within the php script.
(i.e. jpg, gif, bmp for image upload php / swf, flv for video upload php / etc, etc, etc)
i couldnt find any other topics about this in the forum archives
thanks again
the last message just before this message is also related the same topic..
me also wish to know this answer.. it is required for security purposes..
extension filters have not been implemented. You'd need to write the code to check for the type and reject/accept the upload. This can be done either at front end by changing adding the check in javascript, or at the back end in PHP by examining file headers.
hmm. i see
thanks musavir.
i will do it by adding some codes.