Hey T,
Sorry to get back to you so late down the line. Hopefully this
message finds you in a position to where you will not need it.
I had another gentleman ask abut the same question, so I was going to
suggest to you and him to also try adding in error handlers to your
PHP file
that would trigger a response that you designate per each situation.
EG: You could make an error code...
For when the PHP file reads the dir/For when the PHP file writes the dir
For when the PHP file uploads your file to the tmp dir
For when the PHP file moves and renames the file to the appropriate dir
If you put error codes in that handle these instances, you can get a
better idea of what is going wrong, when its going wrong.
I did have trouble checking your file because of this line:
var files:FileList = new FileList ();
It said it could not load that class, so I am not sure about if your
class is the culprit.
I did notice you were using a relative path for referencing your
albums.php.
Maybe try a hard link and see if that is what makes it work?
Also, you should probably set up your file list to be an array that
is sent to the PHP file instead of putting each variable into a
string at the end of your URL.
Then read through and split up into the variables needed to process
the PHP.
EG PHP:
for(file in fileList) {
//split up into separate variables
}
Check and see if your permissions are set correctly for everything..
PHP file, upload directory, tmp directory, the directory your moving
the files to once uploaded.
If you are using https, I am not sure, but I think all these things
have to be specified in that file for any of this to work.
But again, I do not use https that much and am no expert on that
subject.
I would check with your servers admin on what is the proper set-up
for your server.
OH, and one last thing... :P
Make sure your using the right version of PHP for your server settings.
Most have PHP 5, but like my hosting service, they use PHP 4.5. Whole
different ball game when creating an upload form.
Some of this may be redundant if your able to get it to work on other
system, but checking all cases is probably your best bet on figuring
it out.
:)
HTH
Karl
HTHs you Phillippe as well...
On Jun 18, 2009, at 6:34 PM, Karl DeSaulniers wrote:
Hey T,
If you want to send me your code offline or here, I am on a MAC and
work primarily in AS2 and can test for you.
Which uploader are you using?
I have this error check listener in mine and it works fine.
"imagePane" is a component in my file that displays the uploaded
file once complete.
listener.onHTTPError = function(file:FileReference,
httpError:Number):Void {
imagePane.contentPath = "error";
imagePane.content.errorMSG.text = "HTTPError number: "+httpError
+"\nFile: "+ file.name;
}
listener.onIOError = function(file:FileReference):Void {
imagePane.contentPath = "error";
imagePane.content.errorMSG.text = "IOError: "+ file.name;
}
listener.onSecurityError = function(file:FileReference,
errorString:String):Void {
imagePane.contentPath = "error";
imagePane.content.errorMSG.text = "SecurityError: "+SecurityError
+"\nFile: "+ file.name;
}
HTH,
Karl
On Jun 18, 2009, at 6:21 PM, TS wrote:
My uploader works on every other platform except for Mac. The file
uploader
never completes and throws an ioError? Latest Player installed on
FF. Using
PHP as the file handler on the backend. Anyone else have this
issue or know
a workaround?
Thanks, T
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders