• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

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!
0
bbdesign
Asked:
bbdesign
  • 3
1 Solution
 
bbdesignAuthor Commented:
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).
0
 
duncanb7Commented:
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
0
 
bbdesignAuthor Commented:
Thank you for looking, but it seems this is an issue with an md5 string that is passed to the script, I am guessing for security. I was not passing the value, so it was rejecting the post.
0
 
Scott Fell, EE MVEDeveloperCommented:
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!
0
 
bbdesignAuthor Commented:
Found problem.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now