Jump to content

Recommended Posts

I don't think this is as complicated as I'm making it sound, but who knows? 

 

Here's the deal.  Here's my site, and the path to save uploaded files:

 

root/images/talent/

 

The URL is pointing at the root.  I'm now moving this entire site to a subdirectory of this site, so a different URL will be pointed at:

 

root/newsite/images/talent/

 

 

The line of contention is for a variable called media_path:

 

            $upload_dir = "";

            $value = $id.".".$key.substr($value,strrpos($value,"."));

            $upload_file = $upload_dir.$value;

            $media_path = 'images/talent/'.$value;

            $original = $files['userfile']['tmp_name'][$key];

 

 

Just moving the script as is won't work, and either will changing the media path to:

 

newsite/images/talent/

 

Any ideas?  So very much appreciated!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.