close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Uploaded file permissions

Thread began 9/21/2009 10:32 pm by windsoarer388279 | Last modified 9/23/2009 2:15 am by anonymous | 1063 views | 4 replies |

windsoarer388279

Uploaded file permissions

Hello all,

I created a php upload form that only contains a file box and submit button. I configured DFP to upload the file to a root directory of newImages/ and newImages/thumbs/. The problem I have is when the file is uploaded through this form I have no permissions to change it, I have tried cpanel, dreamweaver and ftpzilla. I'm not able to delete, move, or change the permissions. If I upload a file to this folder by any other method other than DFP all is normal. If it matters the permissions for the files are loaded as 0644, which is the same when uploaded directly.

Thanks for any help.

Sign in to reply to this post

office172461

Just a guess

Folder Ownership maybe?

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, I would agree with folder ownership issue.

The permission level 644 means:

Owner: read, write
Group: read
User: read


using a script to upload the files, the owner will become the internet guest account. using FTP or another method where you log in to gain access to the folder, your account is the owner of the uploaded file. Try 666 permissions:

Owner: read, write
Group: read, write
User: read, write

This should allow you to modify files uploaded by the internet guest account. You could also have your user account added to the same group as the internet guest account then you would be able to use the 664 permisions level:

Owner: read, write
Group: read, write
User: read

Sign in to reply to this post

windsoarer388279

Thanks for the ideas, I will check those changes. I found the issue with the unable to change the permissions on the cpanel is a host problem, but I was unsure as to why the scripted upload only wasn't working. Again thanks for the help and I will post any major findings.

Sign in to reply to this post

anonymous

It also depends on the server's policy for permissions. The only permission sets, in my experience, that have worked on the various servers I have used have been either 777 or 755.

So I would try the other ones first, then go to 755, and then 777 as the last resort.

Best regards,

Brian

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...