Bertil,
Whatever you mean with upload but move_uploaded_file is part of PHP itself.
It does handle invalid write permission.
And also Zend_File_Transfer handles invalid write permissions and return an
exception is this case with the proper message text.
Have you tried it out or are you just looking at the code unable to find out
how it works ? :-)
Take a look at the manual or the examples which can be found around in the
net.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "Bertil Wergelius" <[email protected]>
To: <[email protected]>
Sent: Friday, January 23, 2009 12:03 PM
Subject: [fw-general] File_Transfer move_uploade_file permision denied
Why doesn't Upload catch the possibility that the destination catalog
has no write privileges?
I used to have a class for image uploads with this code sample:
if ($fel==UPLOAD_ERR_OK) {
if (!($flytta_f...@move_uploaded_file($tempfil,$malet))) {
return("Flyttning av filen misslyckades");
} else {
etc
and that works fine. But I can't figure out how that would be done in
or with Zend_File_Transfer.