- see footer for list info -<
Hi everyone.
I am tryig to upload .flv files to my Band website ...
I have the mime type video/x-flv set but I still get the error message ...
The MIME type of the uploaded file "application/octet-stream" was not
accepted by the server.
Do I have to put this as well as video/x-flv? - and what else will this
allow to be uploaded?
<!--- UPLOAD VIDEO --->
<cffile action ="UPLOAD"
filefield
="AddedvideoFile"
nameconflict =
"overwrite"
accept = "video/x-flv"
destination =
"#application.VideoDirectory#">
<cfif #file.filewassaved# eq "yes"><!--- Was the soundbite saved?
--->
<cfset videofile =
'#trim(file.serverfile)#'>
<!---<cfdump var="#CFFILE#"
label="Second upload">--->
<cfelse>
There was a problem
uploading the video<cfabort>
</cfif>
<!--- Ok store the details in the
database --->
<cfquery name="addnews"
datasource="#application.DSN#">
INSERT INTO
tblvideo
(VideoTitle,
VenueIDFK,
VideoPath)
VALUES
('#trim(form.AddedVideoTitle)#',
#form.SelectedVenue#,
'#trim(VideoFile)#')
</cfquery>
Regards - Paul
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<