Page 2 of 2

Re: i have a problem with uploading file in IE

Posted: Fri Aug 22, 2008 10:53 am
by ghurtado
Looks like you didn't include my suggested change in your code, so I'm not surprised you still have the same error.

Re: i have a problem with uploading file in IE

Posted: Fri Aug 22, 2008 10:54 am
by zootboy
ghurtado, to answer your questions:
Yes, I understand that PHP is server side. This is why I believe it is a browser issue. If the same code works fine with firefox, safari and opera but not IE, then it would seem obvious that the browser is doing something unexpected.

Also, I have worked with uploading scripts before, and have had similar errors. My errors were permissions problems, however, and those were easily remedied.

Re: i have a problem with uploading file in IE

Posted: Fri Aug 22, 2008 7:31 pm
by lopy_is_me
no ghurtado i have tried your suggestion and it gave me the same error and just posted the original code

please guys i need this

Re: i have a problem with uploading file in IE

Posted: Sat Aug 23, 2008 8:16 am
by lopy_is_me
guys i really need help

Re: i have a problem with uploading file in IE

Posted: Sat Aug 23, 2008 9:44 am
by ghurtado
If you need this to work so bad, start by showing me the error that is produced when you change the code to reflect my suggestion.

You have not done that yet.
... and just posted the original code
That's not true, you posted code that is different from the original. My suggestion was for the original code.

I have been working with PHP for 8 years and programming for over 20. I have been able to help tons of people on these forums (check my previous posts), but they all did something you have not done: posted the code and error produced by that code together. They tried my suggestions, posted the result again, until we fixed their issue.

You need to understand that posting "it doesn't work" doesn't help me at all, so it doesn't help you either.

Please make an effort to follow my direction or I will never be able to help you.

Unless you try what I suggested and post the exact results (including the error message), I will give up on you and move on to helping others who wish to be helped more than you.

Re: i have a problem with uploading file in IE

Posted: Sat Aug 23, 2008 10:37 am
by lopy_is_me
thanks ghurtado you opened my eyes on the solution. the misunderstanding was in where to put the $path in the IF or out of it .

in my post i mean that when i do the changes you told me it still gives me the same error we the same exactly phrase the only thing that changes is the temp name . I do understand that you are great and have a long time experience that is why I asked for help in this forum
the last code that I posted it is the original code. the first one a short one that removed from it the functions about resizing image and like that but what i leave is the part that handle the file and it's property nothing else.

I am sorry again ghurtado and I didn't mean to sneer at you

finally see the last code and when i do the change you told me i made it in the IF statement and gave me the same error but when I created the variable up before the IF statement it works and save the file successfully that is mean the IE couldn't recognize the files types so I tried to echo the variable $userfile_type and found something made me crazy that my $path string is based on IF statement and it's condition is image/jpeg or image/gif or image/png and those types' names recognized only by firefox, safari, and opera and IE doesn't know it with those names cause IE recognize jpg and jpeg files as image/pjpeg and png files as image/x-png and the only common thig between all those browsers that the gif files known as image/gif .

thanks again ghurtado and sorry again

Re: i have a problem with uploading file in IE

Posted: Sat Aug 23, 2008 12:07 pm
by ghurtado
No need to apologize! I am very glad you got it to work :)