B
Boris Twila
hi Only the Safari browser gives an err when uploading a file:
on this line> If fileFld.ContentType.IndexOf("image") >= 0 Then
any idea why??? Se the function below
thanks
fileFld = Request.Files(0) ' get the first file uploaded from the form
(note:- you can use this to itterate through more than one image)
'fileFld = Request.Files("ctl00$FormView1$FileUpload1")
If fileFld.ContentLength > upload_max_size * 1024 Then
msg = "Sorry, image 1 must be less than " & upload_max_size & "Kb<br />"
Else
fileExt = System.IO.Path.GetExtension(fileFld.FileName).ToLower()
If fileFld.ContentType.IndexOf("image") >= 0 Then
Request.Files(0).SaveAs(Server.MapPath(upload_dir) & AdNum & "__1" &
fileExt)
HasImages += 1
End If
End If
on this line> If fileFld.ContentType.IndexOf("image") >= 0 Then
any idea why??? Se the function below
thanks
fileFld = Request.Files(0) ' get the first file uploaded from the form
(note:- you can use this to itterate through more than one image)
'fileFld = Request.Files("ctl00$FormView1$FileUpload1")
If fileFld.ContentLength > upload_max_size * 1024 Then
msg = "Sorry, image 1 must be less than " & upload_max_size & "Kb<br />"
Else
fileExt = System.IO.Path.GetExtension(fileFld.FileName).ToLower()
If fileFld.ContentType.IndexOf("image") >= 0 Then
Request.Files(0).SaveAs(Server.MapPath(upload_dir) & AdNum & "__1" &
fileExt)
HasImages += 1
End If
End If