PDA

View Full Version : aspupload uploading video files


esthera
06-02-2005, 08:17 PM
I'm trying to upload a video file through a script using asp upload

I am getting the following error:

Persits.Upload.1 error '800a003d'

Wrong Content-Type. Make sure you have included the attribute ENCTYPE="multipart/form-data" in your form.

/multimedia/includes/functions.asp, line 218


the line that is erroring is:

Set Upl = Server.CreateObject("Persits.Upload.1")
'Response.Write Server.MapPath("../../data/products")
'Response.End()
Upl.SaveVirtual("../data/pictures")

Do I have to set it anywhere in the asp upload file to allow for videos?

miranda
06-02-2005, 08:21 PM
in your refering form do you have the enctype attribute?

esthera
06-02-2005, 08:25 PM
yes and it works to upload jpg's -- just not the video file

miranda
06-02-2005, 09:10 PM
I have used this to upload a small video in the past, so I know that works.

Are you trying to save them as images? That would return the wrong content-type error.

esthera
06-03-2005, 06:57 AM
I'm using the following function and it is not working

any idea


Sub upload

Set Upl = Server.CreateObject("Persits.Upload.1")
'Response.Write Server.MapPath("../../data/products")
'Response.End()
Upl.SaveVirtual("../data/pictures")

if upl.Files.count <> 0 then

if upl.Files.count >= 1 and upl.Files(1).Name = "pict" then
Set file = upl.Files("pict")
slashLoc = instrrev(file.path,"\")
valuePict = right(file.path,len(file.path) - slashLoc)
end if

if upl.Files.count > 1 then
Set file = upl.Files("bigPict")
slashLoc = instrrev(file.path,"\")
valueBigPict = right(file.path,len(file.path) - slashLoc)
end if

end if

valueNam = upl.Form("nam").Value

End Sub