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

AAA Replica A.Lange & Söhne :
[b][url=]Zwitserse replica horloges aaa +[/url][/b] [b][url=http:/

Hermes klockor
[b][url=]Franck Muller klockor pris[/ur

Roger Vivier Belle de Nuit Bombas de raso verde 10cm O84DC3 [b0a9] - €193.44 : tiendas Profesional Roger Vivier,
Roger Vivier Shoes Sale
Cheap Roger Vivier Outlet
[b]Roger Vivier on Sale[/b] [b]Roger Viv

Send inserts to mysql thru port 80

I have an application that must do some inserts in a mysql db. This db is behind a firewa

Multiple websites question.
Hi, does php have any functionality that enables a programmer to extract information from a website

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