paragvshah
Programmer
Hi friends,
I want to accept only 3 formats (.asf, .wmv, .wma)to upload on my site so i am using CFfile tag to validate the file format uploaded by a user. i am using cftry & cfcatch to catch any errors but on some machines the code mentioned below is working and on some machine is giving error.
<cffile
action="UPLOAD"
accept="video/x-ms-asf, video/x-ms-wmv, audio/x-ms-wma"
filefield="movie_name"
destination="#GetDirectoryFromPath(path)#admin\movie\"
nameconflict="MAKEUNIQUE">
When i removed cftry & cfcatch to find the error it shows the following error:
Error Occurred While Processing Request
Error Diagnostic Information
Error processing CFFILE tag
The MIME type of the uploaded file (application/octet-stream) was not accepted by the server. Please verify that you are uploading a file of the appropriate type.
The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (49:8) to (54:34).
Date/Time: 04/12/02 16:13:34
Browser: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
Remote Address: 169.254.0.154
HTTP Referrer: Query String: submodule=upload
what could be the reason that same code is accepting the file types and in some machines its giving errors?
parag.
I want to accept only 3 formats (.asf, .wmv, .wma)to upload on my site so i am using CFfile tag to validate the file format uploaded by a user. i am using cftry & cfcatch to catch any errors but on some machines the code mentioned below is working and on some machine is giving error.
<cffile
action="UPLOAD"
accept="video/x-ms-asf, video/x-ms-wmv, audio/x-ms-wma"
filefield="movie_name"
destination="#GetDirectoryFromPath(path)#admin\movie\"
nameconflict="MAKEUNIQUE">
When i removed cftry & cfcatch to find the error it shows the following error:
Error Occurred While Processing Request
Error Diagnostic Information
Error processing CFFILE tag
The MIME type of the uploaded file (application/octet-stream) was not accepted by the server. Please verify that you are uploading a file of the appropriate type.
The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (49:8) to (54:34).
Date/Time: 04/12/02 16:13:34
Browser: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
Remote Address: 169.254.0.154
HTTP Referrer: Query String: submodule=upload
what could be the reason that same code is accepting the file types and in some machines its giving errors?
parag.