Link to home
Start Free TrialLog in
Avatar of Brad Bansner
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:

$uploadDir = '/uploads/';

Open in new window


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!
Avatar of Brad Bansner
Brad Bansner

ASKER

I installed the Uploadify demo at this URL, and this DOES work:
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).
It might be full path issue .
Please send us the exact full path of $uploadDir = '/uploads/';

I guess it is at /home/yourwebsite/public_html/uploads/, Right ?

If so, set it as

$uploaDir=$_SERVER['DOCUMENT_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
ASKER CERTIFIED SOLUTION
Avatar of Brad Bansner
Brad Bansner

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Scott Fell
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!
Found problem.