Re: Permissions on uploaded image don't allow for over writing

From: Date: Sat, 29 Jan 2005 20:24:00 +0000
Subject: Re: Permissions on uploaded image don't allow for over writing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-207692@lists.php.net to get a copy of this message
Use php's ftp commands. Hugh ----- Original Message ----- From: "Dave" <dave@tokyocomedy.com> To: <php-general@lists.php.net> Sent: Saturday, January 29, 2005 11:11 AM Subject: [PHP] Permissions on uploaded image don't allow for over writing
PHP List, The Situation: I am building a content management system where users can, among other things, upload images into a directory. The Problem: The image uploads fine, but once it's there, it can't be over written. So if a user uploads an image, and then changes his or her mind and wants to upload a new version over it, the file upload fails. What I've Tried So far: I can manually edit the file permissions using chmod and setting the files to 777. But of course that's not something I want to have to do every time someone uploads a file. I don't know enough about file permissions and settings to know how I can set these permissions at the time that someone makes the upload. The Question: How do I allow a user, who is uploading via the web, place an image on the server with permissions that allow the file to be over written? -- Dave Gutteridge dave@tokyocomedy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005

« previous php.general (#207692) next »