Thread: Uploading large files
hi,
im working with mandrake 10, using postgresql 7.4 and php to make a web site. i want to be able to upload image files to my database and show the image in a web page later. there seems to be some problem with the upload related to the permissions somewhere because i cant upload the files. i suspect it has to do with where the web server (apache 2) uploads the file temporarily for it to then process it or upload it to the server. can anybody help? or can you suggest an alternative to upload the image files?
thank you!
On Tue, Mar 15, 2005 at 10:44:28PM -0500, cima wrote: > im working with mandrake 10, using postgresql 7.4 and php to make a > web site. i want to be able to upload image files to my database and > show the image in a web page later. there seems to be some problem with > the upload related to the permissions somewhere because i cant upload > the files. i suspect it has to do with where the web server (apache 2) > uploads the file temporarily for it to then process it or upload it to > the server. can anybody help? or can you suggest an alternative to > upload the image files? This sounds more like a PHP issue than a PostgreSQL issue. I'd suggest going through the relevant PHP documentation or asking in a PHP newsgroup or mailing list where there's more PHP experience. http://www.php.net/manual/en/features.file-upload.php http://www.php.net/manual/es/features.file-upload.php -- Michael Fuhr http://www.fuhr.org/~mfuhr/
Hi, Also php may use a 'temp' for uploads. You sure you have this path correct ? Check php.init also to see uploads are allowed and the max file size of an upload. Another and often preferred (db size !) approach is to upload the images to a certain directory on the server and only store the path to that location and file as text in your db. Check permissions again to do this. BR, Aarni On Wednesday 16 March 2005 05:44, you wrote: > hi, > > > im working with mandrake 10, using postgresql 7.4 and php to make a web > site. i want to be able to upload image files to my database and show the > image in a web page later. there seems to be some problem with the upload > related to the permissions somewhere because i cant upload the files. i > suspect it has to do with where the web server (apache 2) uploads the file > temporarily for it to then process it or upload it to the server. can > anybody help? or can you suggest an alternative to upload the image files? > > thank you! -------------- This is a bugfree broadcast to you from **Kmail** on **Fedora Core 2** linux system --------------