Brad Bansner
asked on
Uploadify completes but image not on the server
I installed Uploadify 5 (the HTML5 version) on this page:
http://www.berksfoods.com/crazyhotdogcontest6/
When you click SELECT in the form and choose image(s), it uploads and then displays a "complete" message. Using Firebug, the POST seems to have completed successfully. However, no JPG file appears on the server.
In my uploadifive.php script, I set the upload directory as follows:
I created an "uploads" directory in both the root and within the "uploadify" directories (where uploadifive.php is located), to be sure. Both are set to 777 full permissions.
I'm not sure what else to try. Any advice? Anything I can add to the PHP script to try to figure out what is going on?
Thank you!
http://www.berksfoods.com/crazyhotdogcontest6/
When you click SELECT in the form and choose image(s), it uploads and then displays a "complete" message. Using Firebug, the POST seems to have completed successfully. However, no JPG file appears on the server.
In my uploadifive.php script, I set the upload directory as follows:
$uploadDir = '/uploads/';
I created an "uploads" directory in both the root and within the "uploadify" directories (where uploadifive.php is located), to be sure. Both are set to 777 full permissions.
I'm not sure what else to try. Any advice? Anything I can add to the PHP script to try to figure out what is going on?
Thank you!
It might be full path issue .
Please send us the exact full path of $uploadDir = '/uploads/';
I guess it is at /home/yourwebsite/public_h tml/upload s/, Right ?
If so, set it as
$uploaDir=$_SERVER['DOCUME NT_ROOT']. "/uploads/ ";
Take a look at this about $_SERVER variable at http://php.net/manual/en/reserved.variables.server.php
Hope understand your question completely.If not, please point it out
Duncan
Please send us the exact full path of $uploadDir = '/uploads/';
I guess it is at /home/yourwebsite/public_h
If so, set it as
$uploaDir=$_SERVER['DOCUME
Take a look at this about $_SERVER variable at http://php.net/manual/en/reserved.variables.server.php
Hope understand your question completely.If not, please point it out
Duncan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Very cool site.
But icecream on a hot dog?
Mustard, glowing green relish, pickle wedge, tomato wedge, sport peppers, onions and celery salt. That's a dog!
But icecream on a hot dog?
Mustard, glowing green relish, pickle wedge, tomato wedge, sport peppers, onions and celery salt. That's a dog!
ASKER
Found problem.
ASKER
http://www.berksfoods.com/Sample/
File appears in the "uploads" directory of the root. My PHP script and the demo PHP script are identical.
This must have something to do with the fact that my page is in a folder? (even though it isn't in a folder, its a WordPress-generated page).