August 4th, 2000, 09:43 AM
I am attempting to setup a file upload and I am getting an error message which is stumping me
Here is the error message we get when we attempt to upload an image
Warning: Unable to create '/home/jj/picparty.com/users/ss/tmp/phproJvoQ': No
such file or directory in /home/jj/picparty.com/add.php3 on line 6
failed to copy file
upload tmp file:
target file name:
target directory: c:apachehtdocstmp
Thanks for any feedback. I believe the problem is buried within our server.
August 6th, 2000, 05:19 PM
Do you have "write" permissions set for that directory?
From the day we're born, we're running out of time.
August 7th, 2000, 03:18 AM
Can you give some of you code that you're using to process the uploaded file?
August 7th, 2000, 06:47 PM
you might want to check php.ini
there should be an entry there for the temporary location where php will upload
/tmp for *nix and c:tmp for win32
otherwise, as the last guy said, submit a few of the lines of code
p.s. I have some upload functions that I wrote, mail me offlist if you want them, it might help
August 8th, 2000, 08:23 PM
upload_tmp_dir = /tmp in php.ini
echo("First File Successfully copied<BR>");
echo("First File not copied<BR>");}
That's the relevant function. $picture is the name of the file. The $name directory is successfully created by the script, set to 777, but then I get the error message listed above when the file tries to upload into that dir.
Using PHP4...everything else works GREAT which is what's really annoying about the whole thing. If someone can give me a better way to upload files easily, I'd appreciate it.
August 8th, 2000, 08:27 PM
>>If someone can give me a better way to upload files easily
August 9th, 2000, 04:58 PM
Try Perl...how trite. Obviously if I was asking a question on in the PHP Forum, it implies that I wish for a solution involving PHP.
Regardless, I figured it out. PHP assigns a variable $whatever_name automagically.
August 9th, 2000, 07:47 PM
file_name is a PHP thing that gives you the original filename of the file, I *think* that in your case, $picture evaluates to /tmp/the_tmp_file_name