Photo upload file permissions?

Hi,
My website will give users the option to upload photographs which will be displayed on the website.
Before a user can do this they must register or be logged in to their account.
I will be using a shared hosting environment.
My script does check the file size and type and only allows .jpg .gifs and .png.
I need to set global permissions, is there a way of defining a registered user as the owner so that I only need apply owner permissions of 700 rather than setting at 777?
My other concern is that the files that I upload the photos to is also the one that I link to from my web pages to display the images, should I be copying the uploaded images to another file then linking to that one to display the images?
Hope I am making sense.
Thank you in advance for your help and information.

Hi Rob,
Just to clarify your helpful comments, there are two comments that I am not fully understanding.
Firstly yes I am allowing registered users to upload through http protocol.
And yes the files that are being uploaded to will be under website ownership.
As it will be shared apache hosting I need to set read write and execute permissions to allow the upload script to perform, which I have to do using chmod and assigning restrictive permissions if possible.
Your comment: As long as the scripts performing the uploads are within the SAME ACCOUNT....
The script is just there within the page, a user registers their details and then is allow to go to the page that upload information to the database and photos to the upload script, returning users, after log in is verified, are also allowed on the page that upload photos, DOES THAT MEAN THEY ARE WITHIN THE SAME ACCOUNT AS WEBSITE OWNER?
Your comment:  Why do you feel you need to assign apache permissions to INDIVIDUAL USERS?
I wanted to apply permission the the upload files but I thought the 'status' of my users would be like 'general public' I guess that ties in with the last comment about account ownership, for what ever reason I was thinking that a user, even if registered, would be just like a a public person and for them to be able to use the upload scripts I thought that I would need to somehow tell the files that this person was the 'owner' so that I could apply 700 permissions to the actual file rather than 777 permissions, I was trying to find a way to use a more restrictive permission level ( sorry if I didn't explain it well).
So I am getting this right, I do hope so! A user on my website who is using the upload scripts has ownership permissions, so if I set the permissions on my upload file to 700, it will allow read, write and execute permission for the file and I don't need to set the status of my users to 'owner' they just will be as such the 'owner' because they are using the script?
Thank you for your time a patience, I look forward to your reply and hopefully confirmation that i am now understanding this correctly.
Best regards 
Date: Sat, 17 Nov 2012 20:58:59 -0700
From: [email protected]
To: [email deleted]
Subject: Re: photo upload file permissions? photo upload file permissions?
    Re: photo upload file permissions?
    created by Rob Hecker2 in Developing server-side applications in Dreamweaver - View the full discussion
is there a way of defining a registered user as the owner so that I only need apply owner permissions of 700 rather than setting at 777?If users are uploading through the HTTP protocol, then the owner of the folders and files is going to be set to the website ownership.All files and folders will share the same ownership. As long as the scripts performing the uploads are within the same account, there should not be an issue, and you should be able to assign more restrictive permissions than 777. Why do you feel you need to assign apache permissions to individual users? (which you can't do anyway, using http)  It would be pretty easy using sessions and PHP  to keep user files separate from each other in unique folders. But if users will use the FTP protocol, the situation would be very different.
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4855936#4855936
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Re: photo upload file permissions?
To unsubscribe from this thread, please visit the message page at Re: photo upload file permissions?. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Developing server-side applications in Dreamweaver by email or at Adobe Community
  For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Similar Messages

  • [solved] vsftpd: Uploaded files are with permissions -rw-------.?

    Hello,
    I have a problem with the ftp server(vsftpd).The new files are saved with permissions 600 (rw ----). So apache server can't show them. Ftp access is configured with my local user and this home is in /srv/http.
    The trouble is the user config access...
    Last edited by felipe (2013-07-29 16:38:14)

    solved:
    acording to
    Q) Help! Uploaded files are appearing with permissions -rw-------.
    A1) Depending on if this is an upload by a local user or an anonymous user,
    use "local_umask" or "anon_umask" to change this. For example, use
    "anon_umask=022" to give anonymously uploaded files permissions
    -rw-r--r--. Note that the "0" before the "22" is important.
    A2) Also see the vsftpd.conf.5 man page for the new "file_open_mode"
    parameter.
    more info :
    https://security.appspot.com/vsftpd/FAQ.txt

  • Live Data / Problem with file permissions

    Just trying out an old version of Dreamweaver MX 2004. I am
    using my webhosting service for remote server/testing server
    duties. It is running PHP 4.3.10 and MySQL 3.23.58. I was able to
    set up the database connection and test-retrieve a recordset with
    no problems. In following the tutorial I found that Livedata
    wouldn't work, it just giving me a warning about file permissions
    being wrong. It turns out that when Dreamweaver creates a temporary
    file of the work-in-progress to upload to the remote server the
    file is created on the server with owner=rw, group=rw, world=r
    which explains why it won't run - group has to be set to group=r.
    The file is created on the fly and then immediately deleted by
    Dreamweaver so it is impossible to manually set the permission on
    the server and probably fairly pointless too.
    I tried just saving the file and previewing in the browser
    which again causes it to be uploaded to the remote server. The
    first time this resulted in the browser offering a file download
    box instead of running the page. The reason is - again - that
    Dreamweaver is setting the uploaded file permissions to include
    group=rw. If I manually set the permission for group to group=r it
    runs fine.
    It turns out that Dreamweaver is always setting the file
    permissions on file uploads (checked php and html) to the
    remote/testing server to include group=rw. Once I set it manually
    on the remote/testing server to group=r for a php file everything
    is fine and subsequent uploads of the same file do not change it
    again.
    I checked with the webhosting company and their second-line
    have reported back to me that the default file permission they set
    on uploaded files includes group=r so it must be DW that is causing
    the problem by setting group=rw the first time. I confirmed this by
    using WS-FTP to upload the same file (renamed) to the same target
    directory and the permissions set were owner=rw, group=r, world=r.
    So
    Can anyone please tell me how to change the permissions DW
    sets on files written to a remote server because I have spent
    countless hours on it without success. From looking at other posts
    in this forum it could be that other users are hitting the same
    kind of problem with DW8

    Stop using Live Data with a hosting account. Set up PHP and
    MySQL locally on
    your machine. That is how it's supposed to work. You
    shouldn't test files on
    the fly on a host as you write them. Change your test account
    in DW to use
    the local server. Upload your files to your remote server
    after they are
    fully tested.
    Tom Muck
    http://www.tom-muck.com/
    "nigelssuk" <[email protected]> wrote in
    message
    news:[email protected]...
    > Just trying out an old version of Dreamweaver MX 2004. I
    am using my
    > webhosting
    > service for remote server/testing server duties. It is
    running PHP 4.3.10
    > and
    > MySQL 3.23.58. I was able to set up the database
    connection and
    > test-retrieve a
    > recordset with no problems. In following the tutorial I
    found that
    > Livedata
    > wouldn't work, it just giving me a warning about file
    permissions being
    > wrong.
    > It turns out that when Dreamweaver creates a temporary
    file of the
    > work-in-progress to upload to the remote server the file
    is created on the
    > server with owner=rw, group=rw, world=r which explains
    why it won't run -
    > group
    > has to be set to group=r. The file is created on the fly
    and then
    > immediately
    > deleted by Dreamweaver so it is impossible to manually
    set the permission
    > on
    > the server and probably fairly pointless too.
    >
    > I tried just saving the file and previewing in the
    browser which again
    > causes
    > it to be uploaded to the remote server. The first time
    this resulted in
    > the
    > browser offering a file download box instead of running
    the page. The
    > reason is
    > - again - that Dreamweaver is setting the uploaded file
    permissions to
    > include
    > group=rw. If I manually set the permission for group to
    group=r it runs
    > fine.
    >
    > It turns out that Dreamweaver is always setting the file
    permissions on
    > file
    > uploads (checked php and html) to the remote/testing
    server to include
    > group=rw. Once I set it manually on the remote/testing
    server to group=r
    > for a
    > php file everything is fine and subsequent uploads of
    the same file do not
    > change it again.
    >
    > I checked with the webhosting company and their
    second-line have reported
    > back
    > to me that the default file permission they set on
    uploaded files includes
    > group=r so it must be DW that is causing the problem by
    setting group=rw
    > the
    > first time. I confirmed this by using WS-FTP to upload
    the same file
    > (renamed)
    > to the same target directory and the permissions set
    were owner=rw,
    > group=r,
    > world=r.
    >
    > So
    >
    > Can anyone please tell me how to change the permissions
    DW sets on files
    > written to a remote server because I have spent
    countless hours on it
    > without
    > success. From looking at other posts in this forum it
    could be that other
    > users
    > are hitting the same kind of problem with DW8
    >

  • AC 5.3 - Critcal Permissions in Upload Files

    Hi Guys
    I am just looking for a bit of confirmation here.  I need to load some crital permissions via the upload files in the configuration tab.
    I believe that in the Function Action and Function Permission files I need to use ^! to represent that there is no transaction code, is that correct?
    Is there anything else I need to be aware of when doing it this way?
    regards
    Simon

    Brilliant just what I wanted to know.
    Thanks
    Simon

  • Issue with permissions to upload files into Apache web server to OS 10.8.2

    Hello everyone;
    I setted up Apache web server and mysql to OS 10.8.2 Mountain Lion. It's working fine except for the permissions. I can't upload files into the web site directory. Doesn't recognize, e.g., the PHP function "move_uploaded".
    One problem for my is that I can't modify the permissions by "Terminal" app since it telling me that the "Process completed" and I can't write any script.
    Any suggestion will be welcome.
    Thanks in advance.

    My only question now would be how to speed up Safari's 6.0.1 performance in 10.8.2 or do I just accept that it's a little slower than it was, which is fine. Are other folks having this issue?
    I was primarily passing along info about my particular download speed and for the Web Confidential 3.8 people: make a backup of your passwords b4 installing 10.8.2 or be prepared to upgrade.

  • HT201317 When I view photos on my devices some are not oriented correctly. I used Picassa to turn all photos upright and then copied those photos into the upload file but they are still not corrected when viewed on my devices (ipads)

    When I view photos on my devices some are not oriented correctly. I used Picassa to turn all photos upright and then copied those photos into the upload file but they are still not corrected when viewed on my devices (ipads)

    Generally I would not use Facebook for sharing any photos, it compresses the photos substantially, and when you have shadows and dark colours you get visible "bands" where there should be subtle gradients, ie at sunsets and sunrises.
    It sounds like you are using two methods to upload to Facebook:
    1. Sharing from within Aperture, which basically syncs Facebook with your Aperture album, so any changes made at either end gets synced, hence the deletions from Albums, although the original file should still be in your library, just removed rom the album. It is like a playlist in iTunes.
    2. Exporting pics and uploading to Facebook from the browser.
    I am not sure how method 1 gets compressed, but I know that uploading hi-res jpegs to Facebook using method 2 results in poor quality images.
    I wouldn't even bother comparing option 1 or 2, and they will both be poor images once you view them on Facebook, as opposed to viewing uploaded images on proper image sharing / hosting sites.
    Your problem is not with Aperture, it is using Facebook for showing your work.
    If you export pics form Aperture at high res jpegs or TIFFs your images will be fine.
    If you insist to use Facebook as your way to share your work, then your workflow should be this:
    1. Right click images you want to share.
    2. Select Export version.
    3. Export as 100% size and ensure the export settings are set at 100% quality.
    4. Upload this pic into Facebook.
    This will get you the best image size and resolution on Facebook.
    See how you go.

  • How to set file permissions for SFTP uploaded file?

    Hello,
    is it possible to set file permissions with the SDK for files uploaded via SFTP transfer? I use the default sample plugin ftp_upload.lrdevplugin to transfer the files, but would like to tweak it to set the uploaded file(s) to permission 644 (rw-,r--,r--) on Linux server. Currently the server sets new file(s) by default to 600 (rw-,---,---).
    I am looking for an option to do the "chmod" directly from Lightroom without doing any modificatios in general to default umask, etc. settings on the server. No real UI is needed for this. Just hardcoded setting for 644 in the .lua.
    So far I've been unsuccesful in finding the way. Googled, read this forum, looked at the API. Maybe I just missed it, or does this functionality exist?
    All advice is appreciated!
    Cheers,
    Timo

    Niel's suggestion is good. You might also try posting your question in the Tiger Server forums. I'm sure Tiger Server has several ways of dealing with this.

  • Dreamweaver CS6 - FTP changing my file permissions on upload???

    ORIGINAL POST: SEPT 19, 2012  http://forums.adobe.com/message/4784335#4784335
    Upgraded to cs6. All programs work perfect for me exceopt Dreamweaver.
    I have never expierenced this challenge however no matter what file(s) I upload dreamwever is chanign the file permissions.
    For instance if I upload an image to the sever the image won't appear. I check permissions and they are set to 0.  Same with files.
    I have to now go in to each item I upload and change permissions to 644 or 755 depending if its a file or directory.
    This is a Dreamweaver exclusive problem as it does not happen when I use Filezilla and Im working on 6 different servers.
    ONLY when I upload files with Dreamweaver CS6 do the file permissions change on upload. Cs5.5 no problem.
    Any ideas?
    Aloha!
    STILL NOT WORKING UPDATE:
    I was even on with India Adobe support doing a screen share and they watched in real time as I uploaded a file and Dreamweaver and it changed the permissions to 000. You can 'Get' a file with 775 permissions then 'Put' that same file and it will chanve to 000 permissions.
    Support failed to address this problem after 30 days and never called back.
    STILL NOT WORKING UPDATE: Changing ro SFTP seems to be a workaround.
    See Full Discussion here as I posted in the wrong area. http://forums.adobe.com/message/4784335#4784335

    I'm using DW6 version 12.2, and this problem is still happening.
    The permissions are defaulting to 0664, where I need them to be 0644.  Every time I create a new file, it defaults to 0664, and I'm unable (not permitted) to view that file online until I go in, using another FTP program, and change the permissions to 0644... or manually go in the slow-poke way using DW6 Remote View -> [file name] -> Set Permissions.
    Too bad there's no way to configure this in the Preferences area of DW6.

  • HT4599 How do I upload photos from PC to icloud - loaded into upload file and does not seem to upload

    How do I upload photos from PC to icloud.  I have already moved photos to icloud upload file and nothing seems to upload.  jnelso1

    I have this problem too. Photo stream works fine on iPhone+iPad, but the photos are never loaded to my PC (Win 8.1). My shared folders works fine on iOS and PC, but not My photo stram.
    In the beginning, a couple of years ago, it work, but not now (2014).
    All iOS are updated, and PC-iCloud software/panel is Active, and Photo stream is activated.
    What to do??
    Reset all streams on PC? I tried, no result.
    I can understand that it takes time to reload all Pictures from iCload to my PC, but I wait Days, weeks...

  • How do I stop DW CS6 randomly changing file permissions via FTP?

    How do I stop Dreamweaver CS6 12.0.1.5842 randomly changing file permissions when it uploads files to my web server via FTP.
    I can no longer trust Dreamweaver to upload websites correctly as it changes permissions on some files which then deny the server access to the file which in turn makes the webpage unreachable/return a 403 error.
    This is driving me insane.
    I'm using an early 2011 Macbook Pro 10.7.5.

    Hi,
    I'm having this problem too. Has Adobe fixed the issue yet? This appears to be an Adobe problem, not all the web hosts out there. CS6 is ramdomly (meaning: not every time) changing permissions on files uploaded with it and is not usable for web work until this problem is fixed by Adobe or a solution is provided. If I wanted to use a separate FTP program I would not have recommended that my employer buy multiple Adobe CS6 product licenses. One of the primary appeals of DW is the integration of FTP into the workflow.
    I am using a destop iMac2.8 GHz Intel Core 2 Duo, 4 gigs of 800 MHz DDR2 SDRAM.
    OSX 10.7.5
    I am using DW Version 12 Build: 5808
    Dreamweaver CS4 that I was using until this new purchase was working just fine. No file permisssion changes. I am being forced to go back to using it until Adobe posts a fix for this.
    I should ask while I'm here: has anyone found a solution for this yet?
    Thanks,
    -c-

  • How do I upload files to an FTP Site in Leopard

    I am unable to upload files to an ftp site that was set up for me. I have read write permissions. I can pull files from the site but I cannot upload or place files on the site. The site was tested and is working for pc's

    Colonno wrote:
    Thanks - I am not really versed in ftp so I am not sure where to start without some direction. Maybe 3rd party software is the answer. I went into the terminal without much success.
    The third-party utilities are largely as easy as drag and drop.
    Free: Cyberduck
    Paid: Transmit (excellent), Interarchy

  • Problems uploading files to various web browsers

    I'm having huge problems with uploading files to various browsers on my MacBook Pro (running Mac Lion OS X 10.7.5)
    My default web browser is Google Chrome but I have tried Firefox, Safari and Mail, too, and they're all presenting the same problem.
    The problem is that whenever I try to attach a document to an email in Gmail or upload a photo/file to any website - it just doesn't play ball. The web browser then becomes totally unresponsive (not loading new tabs etc.) and I have to Force Quit and start the application running again. When I tried this in Mail, the application actually crashed.
    I've figured out a way to get round the problem in Gmail - creating documents in Google Drive or simply dragging documents into the email - but I'm starting an online course soon and I really need to be able to upload documents, files, images etc.
    So far I have tried:
    Updating the software on my Mac
    Updating Google Chrome
    Uninstalling and reinstalling Google Chrome
    Signing in and out of Google Chrome
    Deleting all browser history on Google Chrome
    I've also figured out that it's not my firewall as I had an unrelated problem with that and it was taken down for around 24 hours to be fixed - I tried again to upload files in this 24 hour window and encountered the same problems.
    I'm also having problems with my Windows for Mac - whenever I try to Save or Save As in Word - the programme becomes completely unresponsive, parts of the toolbars at the top white out and I have to Force Quit - hence, why I started using Google Drive to create documents. When I try and Save or Save As in Excel or Powerpoint, these programmes crash too.
    I don't know if these problems are related, but I thought it best to bring it up just in case.
    Can anyone help me?!

    In answer to my own question, in case anyone has the same issue, the problem turned out to be that my hard drive is failing.
    If anyone has the same problem, back up all your data to an external device immediately (trying to run a computer on a failing hard drive is like trying to run on a broken leg, so I'm told) and take your mac to get a new hard drive - should cost around £100.

  • Time Capsule file permissions

    Whenever I copy a file to the time capsule (either via finder by moving it there, or via terminal with cp) the file permissions of the file end up with -rwxrwxrwx, independently whether the file was an executable, or whether it only had reading permissions for all or group. Running chmod on the Time Capsule files has no effect.
    This is really silly and makes the Airport Disk sharing useless. This way I will never share files with my friends over the Airport disk because the files loose their property and all files are executables at the end.
    Is there a way to mount or configure the Time Capsule so that it conserves the file permissions?
    I am aware that time capsule cannot handle different users, but at least it should conserve the file permissions. I imagine it could be like a scp or ftp of files to another server. My files on the other server will not have my user name, but at least they conserve the file permissions. A -rw-r-r- file will still be a -rw-r-r- file even if I copy it 10 times from one server to another.
    I would lik to encourage Apple to take this problem seriously and provide an update for this issue. So many other Apple products are just so well integrated in a networking environment, even if it is a heterogeneous one, but not Time Capsule with this flaw.
    Best wishes,
    Reto

    Agree, this is a serious flaw, that makes the device very dangerous to use as a central server for shared files, for example, the family's photograph collection. Since there appears to be no way to write protect anything, how can I ensure the files don't get modified or deleted?
    Here's a nasty case I am seeing:
    We unload a digital camera onto the TC's disk, then someone goes to their iPhoto app, and adds these files to their iPhoto library. Then they do something simple, like rotate the photos, and voila! The master file on the TC has now been modified! Horrible.

  • I am unable to upload files via web browser

    Good morning
    I have just upgraded to Mavericks (10.9.5), and I am running into a weird issue. I am unable to upload any files via the web browser. If I go to a website, and select an Upload File option, I am taken to Finder, where I am able to select the file, and press attach. The issue comes when I press upload on the website. It always either times out, or gives me an error that I was disconnected from the server. This happens on Safari, Firefox, and Chrome. I'm not sure what to do... I've repaired disk permissions and tried a lot of different security settings, but I am stumped.
    Thank you

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen. Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Can't upload files--"Acrobat has encountered a problem"

    I'm experimenting with Acrobat. com as a way to collaborate with peers across the country. Seems like an ideal answer. I'm testing the "free," 2-person version at the moment, and can't seem to upload files to My Workspace. I'm trying to upload two files individually--the first a small MS Word file, the second a 1mb PowerPoint. Each attempt produces an "Acrobat has encountered a problem" error message. I can't even upload a photo of myself for my profile. At first, I thought it might be a firewall/proxy problem, but I ran all the Adobe diagnostics. Everything tested fine. I'm even able to establish video connection in the ConnectNow workspace. I'm working off a T3 pipeline, so I don't think its a volume problem. Help.

    Hi, can you tell exactly what requirements exist?
    I am having the same problem when I try to upload a file. My Admin has opened the site Acrobat.com for me and I can access Acrobat.com via browser, but not upload PDFs. I also cannot upload files for review from other Adobe products (RoboHelp or Acrobat).
    This whole issue seems rather strange to me - an online reviewing process should be designed for professional users and these user are typically behind a firewall. Therefore it would be most important to pinpoint exactly which access rights are required, rather then let the user try and stumble around themselves.

Maybe you are looking for

  • How do you add a date/time stamp to photo before printing?

    How do you customize a photo?  I want to add a date to a photo before printing.

  • Can I install ths sky tv guide and safari browser ...

    I am trying to install the sky tv guide on my Nokia E90 Communicator. It tells me it is not compatible with this phone. Is there any way I can install this? Is it just a case of installing some other software first or upgrading something? I would ver

  • Issue with calling restful services via HTTP in an Orchestration

    The company I work for is using RESTful services for our I/O. We are processing EDI files using Biztalk, and are calling the REST services via HTTP from a c# code called within the orchestration. At lower volumes, the service performs fine, but at hi

  • IDVD will no longer open or start

    I know this topic has been discussed before, but I'm still looking for an answer. I have an Intel-based MBP, running Snow Leopard from a fresh install(not an upgrade install). I cannot get iDVD to open. When I click on the icon in Applications, I get

  • Tabs will not restore from last session in FF v30.0 Mac OSX

    Was able to locate and copy onto external drive sessionstore.bak and sessionstore.js. Have not closed and re-opened FF yet. Please provide clear and easy to understand step-by-step instructions on restoring my last session in mac OSX (Mavericks). Als