Jump to content

Prefix a file upload


zimmo

Recommended Posts

I am unusre of the correct syntax for prefixing the following so it includes the category from another field.

 

I need the following:

if(empty($_FILES['file_name']['name'])) 
{ 
$file_name = $old_file_name; 
} 
else 
{ 
$file_name = $_FILES['file_name']['name']; 

 

To be able to have the category value in the file name at the start, so prefixing the actual image file name.

 

ie: $category,$_FILES...

Link to comment
https://forums.phpfreaks.com/topic/73802-prefix-a-file-upload/
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.