File upload issues


Posted on 16th Feb 2014 07:03 pm by admin

Hi Guys,

Can anyone see any issues with this code:
Code: $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
152 Like 32 Dislike
Previous forums Next forums
Other forums

Update not working ... please help
Hi,

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

search query in mysql in php problem
my search query wont work, i know, that my codes are correct.please help

Code: [Select]&l

Typing math
I've added support for typesetting math using LaTeX on the forums.

Example:
Code: [Select]

array_count_values question?
ok i'm trying to create a top ten list from a database of listed favorite movies.

the followi

Sum of Values in an Array
This is probably really simple... but it's been years since I've written anything, so bare with me!<

Procedure with variable number of columns
Hi, I have a procedure that looks like this:

PROCEDURE PROC(p_cursor OUT sys_refcurso

Filename and Line Number Custom Error
I have a class, with a method that accepts 2 parameters. I would like to output error messages.

My query is being run with no results.
I have this.

Code: function DropUser($duser_id, $user_email, $user_username) {

Displaying pictures
i have worked my way through storing images in directory and storing the location in mySQL db.Now i

use an array from 1 class in a second class
I have a class that adds data to an array

Then I have a second class and I need to check if t

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