File upload issues

Posted on 16th Feb 2014 01:33 pm by admin

Hi Guys,

Can anyone see any issues with this code:
Code: [Select]$setImage= 'productimages/' . date(U) . $HTTP_POST_FILES['setImage']['name'][0];
copy($HTTP_POST_FILES['setImage']['tmp_name'][0], $setImage);
Its stripping the original file name (including the extension) fromt he end of the image and just giving it a unix timestamp for a name. Looking at the code I think I can see why its doing that but I can't see how to fix it.

Any help would be most appreciated

No comments posted yet

Your Answer:

Login to answer
153 Like 31 Dislike
Previous forums Next forums
Other forums

Trouble checking SESSION cookie
I am trying to use $_SESSION cookies to verify admin privileges .
I don't understand why this is

quick question
Hi ..

i have a question
how do i set a var so it displays via an echo
Code: $logo = '&a

BrunoSohnle kellot
[b][url=]kopio kellot[/url][/b][b][url=

Access database inside of a validation class

For quite some time, I have been using functions to validate form input and access the

Sconto Mont Blanc Penna Contenitori e Set Sale UK Online Store
[b][url=]pens[/url][/b] [b][url=http://www.discountmontblancpen

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Google+ Indyaspeak @ Pinterest RSS