[PHP] Re: File Upload on a MAC-Browser didn't work

2003-12-23 Thread Volker Dähn
Hi Chris,

I already posted it as an SAFARI-ERROR to Apple.
Maybe you could do the same.
I think, it's more possible apple fixes the problem, the more error-messages
they get.

Actually i try to identify the situation in which the skript is echoing the
TMP-Directory.

This is the form for the upload:

form enctype=multipart/form-data method=POST name=NAForm
action=IA.php??=SID?
input type=file name=BildDatei maxlength=128 size=36 value=? echo
$Bild; ?
input type=hidden name=MAX_FILE_SIZE value=20480



The following site checks the uplad and copies the file to a specific
folder:

// if the Picture was uploaded
if ($BildDatei!= AND
is_uploaded_file($_FILES['BildDatei']['tmp_name'])) {
// Check for JPG
if ($_FILES['BildDatei']['type']=='image/pjpeg') {
// Move File
$TestFile=$UserCoverDir.$ISBNFeld..jpg;
move_uploaded_file($_FILES['BildDatei']['tmp_name'], $TestFile);
}
} else {
echo Save unsuccesfull;
}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: File Upload on a MAC-Browser didn't work

2003-12-23 Thread Volker Dähn
Hi Chris,

I already posted it as an SAFARI-ERROR to Apple.
Maybe you could do the same.
I think, it's more possible apple fixes the problem, the more error-messages
they get.

Actually i try to identify the situation in which the skript is echoing the
TMP-Directory.

This is the form for the upload:

form enctype=multipart/form-data method=POST name=NAForm
action=IA.php??=SID?
input type=file name=BildDatei maxlength=128 size=36 value=? echo
$Bild; ?
input type=hidden name=MAX_FILE_SIZE value=20480



The following site checks the uplad and copies the file to a specific
folder:

// if the Picture was uploaded
if ($BildDatei!= AND
is_uploaded_file($_FILES['BildDatei']['tmp_name'])) {
// Check for JPG
if ($_FILES['BildDatei']['type']=='image/pjpeg') {
// Move File
$TestFile=$UserCoverDir.$ISBNFeld..jpg;
move_uploaded_file($_FILES['BildDatei']['tmp_name'], $TestFile);
}
} else {
echo Save unsuccesfull;
}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: File Upload on a MAC-Browser didn't work

2003-12-22 Thread Chris
I had a similar problem, but never found an answer. In my situation, the
browser hung when I uploaded a file greater than 800 records. I found a post
that said I should echo something to the browser on a regular basis during
the upload, but that didn't work.

This is still of interest to me to solve. Perhaps we can together find a
solution

Chris

Volker DåHn [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,

The following script works on any browser on windows xp. But not on a mac
(osx)
It simply shows the temp-directoryname.
Is anybody out there who could help me to fix this problem?
How will the upload work with Safari?

Thanks for your help.

This is the form for the upload:

form enctype=multipart/form-data method=POST name=NAForm
action=IA.php??=SID?
input type=file name=BildDatei maxlength=128 size=36 value=? echo
$Bild; ?
input type=hidden name=MAX_FILE_SIZE value=20480



The following site checks the uplad and copies the file to a specific
folder:

// if the Picture was uploaded
if ($BildDatei!= AND
is_uploaded_file($_FILES['BildDatei']['tmp_name'])) {
// Check for JPG
if ($_FILES['BildDatei']['type']=='image/pjpeg') {
// Move File
$TestFile=$UserCoverDir.$ISBNFeld..jpg;
move_uploaded_file($_FILES['BildDatei']['tmp_name'], $TestFile);
}
} else {
echo Save unsuccesfull;
}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php