Matt79 Posted May 22, 2010 Share Posted May 22, 2010 I have been trying to make it possible to upload images on my website via a web browser. I have created the HTML form, I can browse to my desktop and upload an image. But my question is, where is it on my server after I upload it? I am running ubuntu 8.04 on my server. Here is the html form I am using. <form action="/" method="POST" enctype="multipart/form-data"> <input type="hidden" name="MAX_FILE_SIZE" value="2500000"> Upload Image: <input type="file" name="imgfile"> <font size="1">Click browse to upload a local file</font> <br/><input type="submit" value="Upload Image"> </form> Thanks for any help. I am not sure if this is a html, php, or a apache2 issue. Matt Quote Link to comment https://forums.phpfreaks.com/topic/202600-default-http-upload-location-apache2/ Share on other sites More sharing options...
Matt79 Posted May 25, 2010 Author Share Posted May 25, 2010 Anyone? Quote Link to comment https://forums.phpfreaks.com/topic/202600-default-http-upload-location-apache2/#findComment-1062827 Share on other sites More sharing options...
cags Posted May 25, 2010 Share Posted May 25, 2010 Probably /tmp/, it uses the system default unless it is overriden in the php.ini, you should use the move_uploaded_file function to move it out of the tmp folder. Quote Link to comment https://forums.phpfreaks.com/topic/202600-default-http-upload-location-apache2/#findComment-1062919 Share on other sites More sharing options...
Matt79 Posted May 26, 2010 Author Share Posted May 26, 2010 Does it get removed from tmp immediately? at this point I would be happy just to see the file on the server. Quote Link to comment https://forums.phpfreaks.com/topic/202600-default-http-upload-location-apache2/#findComment-1063826 Share on other sites More sharing options...
cags Posted May 26, 2010 Share Posted May 26, 2010 I don't know at what point it get's removed, I suspect it would be pretty quickly. Possibly at the point the script ends if you don't move it possibly not *shrugs*. If you want to see it, just move it to another folder. Quote Link to comment https://forums.phpfreaks.com/topic/202600-default-http-upload-location-apache2/#findComment-1063866 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.