473,320 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Safari browser errs on file upload

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).ToLo wer()

If fileFld.ContentType.IndexOf("image") >= 0 Then

Request.Files(0).SaveAs(Server.MapPath(upload_dir) & AdNum & "__1" &
fileExt)

HasImages += 1

End If

End If
Nov 20 '06 #1
0 1204

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Steve Morse | last post by:
Our website has a form with a file upload control (<input type="file">). We are experiencing a problem when accessing this page from the clients web site from a safari browser. After selecting a...
5
by: Foreman | last post by:
Using ASPFileUpload (http://support.microsoft.com/default.aspx?scid=kb;en-us;299692) and works for IE6 and FireFox but not Safari. Thanks in advance for your assistance.
4
by: Paul W | last post by:
Hi - can someone point me to info on the issues/resolutions of supporting the safari browser? To help me understand, if I was developing pages in say FrontPage, what attributes would I set for...
5
by: Bill Cohagan | last post by:
I'm having some serious difficulties with my ASP.Net 2.0 app rendering in Safari 2.0.3. The most immediate problem is that the menu control doesn't seem to work at all, particularly the use of...
6
by: Ouch! | last post by:
I am using Regular Expressions and Javascript to validate a form, specifically I want to make sure that if they try to upload a file that it has a proper name w/ certain extensions (doc,pdf, rtf). ...
34
by: Simon Wigzell | last post by:
document...focus() will scroll the form to move the specified text field into view on everything I have tried it with except Safari on the MAC. The form doesn't move. Any work around? Thanks.
0
by: Mr. SweatyFinger | last post by:
This form has a file upload feature which works in other browsers, but not in safari is the form type wrong? or what is really the deal <form name="aspnetForm" method="post"...
0
by: AdrianG | last post by:
Hi there, Does ASPSmartUpload work with the MacOSX Safari browser? One of my clients uses the Safari browser and the upload never works. The scripts work fine with IE and FireFox. Thanks
7
by: David Stone | last post by:
Run into something recently that has left me a little puzzled. According to the examples in section 13.6.1 of html 4.01... <http://www.w3.org/TR/html401/struct/objects.html#h-13.6.1.1> I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.