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

Update not working ... please help

I am trying to update a row using an edit form by passing id of the row .. but it is not

رجل مشجرة أحذية المخرج بيع 2014
[b][url=]مشجرة الأحذية[/url][

Replica luksusmerket klokker, Concord
Audemars piguet pris
audemars piguet klokker

Parse String
I need to parse the string below into three variables. How would I do that?

john + 10/20/2008

Curl timeout breaks script
So im having difficulties with skipping timeout error in curl
my script calls different functions

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