File upload issues


Posted on 16th Feb 2014 07:03 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

help understanding hidden input w/ php
hello i'm doing a tutorial where there are multiple forms for an edit page for a user to update thei

small inaccuracies
I have this code to convert fractional base 10 into base 2:

while($num > 0)

Call Screen statement Error
Dear Experts,

is there any setting that needs to be done before creating any dialog progr

getting weird error..
okay, I'm getting an error on this particular function, something about the syntax in the mysql LIMI

php and downloading
I want to use a php script to create two files. Then I want it to redirect (or whatever) to have tho

Issue Parsing XML into table
Hello all,

Im a bit new to php and new to phpfreaks. But thanks in advance for the help!
<

Wordpress IE issue
So I am trying to add the background shadow to my wordpress page. It works fine in Firefox but does

temporary objects
Until now i thought every temporary object in C++ is created as constant. I'm wondering why my compi

PHP Include not working
The website is http://www.grlistingservices.com

The code block is as follows:

<

PHP Form to Variable.
Hi! I have written a HTML-form code in DreamWeaver CS3 (in a PHP doc) and I really need it to work s

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



Play Free Quiz and Win Cash