Jump to content

move_uploaded_file function issue


tomtimms216

Recommended Posts

I am trying to upload an image from a form however it keeps saving with the image name twice.

 

move_uploaded_file($_FILES["artwork_1_image"]["tmp_name"],$target_path . $artist_last_name . '_1_' . $_FILES["artwork_1_image"]["name"]);

 

my image name is boston_smiley.jpg, so I want to store it in my directory with a prefix variable $artist_lastname_1_{{ the file name }}. What I am getting is

 

boston_smiley.jpgJohnson_1_boston_smiley.jpg instead of Johnson_1_boston_smiley.jpg

 

anyone know what's the deal!

Link to comment
https://forums.phpfreaks.com/topic/274225-move_uploaded_file-function-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.