Forum Moderators: travelin cat

Message Too Old, No Replies

Wont work on a mac

Webiste will work on a PC, wont on a mac

         

MarkDenton

11:26 am on Oct 21, 2003 (gmt 0)

10+ Year Member



Hi guys.

I wonder if anyone can help me. I have created a website that uploads images to a server, which runs fine on a PC, but whenever it someone tries it on a mac, it fails with an error message. I can post the code and error messge on here if someone will be able to help out. If so please let me know. Thanks guys

Mark

timster

12:54 pm on Oct 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The error message would be a good place to start. A rundown of the technologies used (e.g., HTML 4.0, JavaScript, Perl, CGI, whatever) might help too.

Better than sifting through code by hand might be using a good syntax checker. Often these sorts of problems are the result of one browser being more forgiving than another. If you stick to the standards, *usually* cross-platform inompatibilities disappear.

That leads to another question -- is/are the Mac user(s) going to your site with a specific browser? You may also want to find out if your users are on Mac OS 9 or earlier (classic Mac) or Mac OS X (their new Unix-based OS).

FYI, here's a link to a list of Mac browsers. Two of the most common are Safari and MSIE.

[darrel.knutson.com...]

MarkDenton

1:13 pm on Oct 21, 2003 (gmt 0)

10+ Year Member



Thanks mate. The error message I get is 'could not find part of the path C:\sites\tillendove.co.uk\images' I am trying to upload an image on my aspx (asp.net) page.

The line of code it is causing that error on is 'myFile.PostedFile.SaveAs(Server.MapPath("..\images\" & strFileNameOnly))'

The mac users are using IE5 but im not sure what version of the mac os they are using. I have tried it on a PC using IE5 and it does work.

Any further help would be appreciated again.

Thanks guys

bcolflesh

1:24 pm on Oct 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try taking out the 2 dots in front of \images\:

("\images\" & strFileNameOnly))'

What happens then?

MarkDenton

2:18 pm on Oct 21, 2003 (gmt 0)

10+ Year Member



Well I tried it on a PC and it still works. Im just getting the customer to try it and I will let you know how it goes.

Thanks again

Mark

MarkDenton

2:48 pm on Oct 21, 2003 (gmt 0)

10+ Year Member



Damn, no luck there. Removing the .. didnt do anything. Any more ideas?

Thanks again

Mark

bcolflesh

2:56 pm on Oct 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try removing Server.MapPath and replace it with the actual path and see what happens.

timster

4:16 pm on Oct 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Could a bad file name in [strFileNameOnly] be causing a problem?

Have you made sure your Mac user is naming the file something "reasonable"? Mac users have a penchant for file names like:

My Image #7.gif.GIF

(And we're proud of it.)

garann

8:13 pm on Oct 21, 2003 (gmt 0)

10+ Year Member



If it turns out not to be filename problems, are you using post-back/server controls to upload the file? I thought those all converted to HTML, but maybe some of them run as ActiveX objects, or some other proprietary nonsense. If you are using server controls, maybe you can post the relevant snippets of source after the server has processed the page?