Forum Moderators: coopster

Message Too Old, No Replies

Dynamic name for file uploads

         

optik

1:13 pm on Aug 19, 2009 (gmt 0)

10+ Year Member



Hi

I need to set the name of a file upload as a variable like this

$_FILES[$fileInput]['name']

But that doesn't work, any ideas?

Thanks

coopster

1:17 pm on Aug 19, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The main index comes from the <input> element name.
POST method uploads [php.net]

optik

1:19 pm on Aug 19, 2009 (gmt 0)

10+ Year Member



sorry it was another problem that works fine

coopster

1:21 pm on Aug 19, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Great! I was thinking it should so thanks for the confirmation!