File upload permission issues?
Last Post 03-01-2012 05:48 AM by M Liao. 4 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
M LiaoUser is Offline
skipping stones
skipping stones
Posts:14
Avatar

--
02-24-2012 05:49 AM
    I have a file upload field in my form. On submit, an email gets sent out with the link to the uploaded file. When I test it with the admin account, everything works fine. The link works, I can see it in the folder from File Manager.

    However, when I test with the non-admin account, the file doesn't seem to be able to upload. The email is still sent out with a link to where the file is supposed to go, but when I click on the link, it goes to a "Page not found", and I don't see the file in the File Manager.

    So I thought it's a permission issue with the upload folder. I specifically gave my non-admin account permission to "Add" (gave it a green checkmark), but I'm still not able to upload the file.

    My upload folder is nested several levels down, do I need to set permissions to all the parent folders too? I don't want to have to allow adding files to the root folder if possible though.

    Is there any permission settings with the file upload control? It seems to generate the file path token fine, and doesn't give any errors.

    Below is a screencap of my file upload settings


    Using
    Dynamic Forms Version: 3.40.60.25772
    DotNetNuke Version: 5.6.2

    Thanks!
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    02-24-2012 09:47 AM
    Hi,

    Thanks for your comments. I would suggest you choose the "HTML File Input". The DotNetNuke File Input Upload or Telerik File Upload options that are appearing there were not supposed to be displayed/show up as a feature until Dynamic Forms 4.0. Even if / when the feature is there you are still better to use the HTML File Input instead of the DotNetNuke File Upload control. I say this because the DNN File Upload control stores the file with a fileID # or Ticket # but then you are usually forced to use the LinkClick.aspx application (which also uses security) to actually access the file.

    Thanks,

    Chad
    M LiaoUser is Offline
    skipping stones
    skipping stones
    Posts:14
    Avatar

    --
    02-24-2012 10:16 AM
    Thank you for the reply. 

    I tried switching it to the HTML File Input control, but now I can't even upload files using the administrator account...

    The file upload field is initially hidden, and I have a question event to show it. Does that affect the file upload?
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    02-27-2012 03:27 PM
    Hi. I would start with the defaults for the File Upload field type... For example don't include any additional alter folder restrictions etc... I would also enable Debug Mode within the module instance.

    Thanks,

    Chad
    M LiaoUser is Offline
    skipping stones
    skipping stones
    Posts:14
    Avatar

    --
    03-01-2012 05:48 AM
    Okay, I created a test form with just the file upload field, kept everything to the default settings, and used the HTML File Upload.

    On form submission, I have an email sent out with the link to the uploaded document.

    When I turn on debug mode, this is what I get:
    ---------

    ***DYNAMIC FORMS DEBUG MODE ON***
    Dynamic Forms Version: 3.40.60.25772

    DotNetNuke Version: 5.6.2

    Initial Javascript:

    Saving Forms Responses: 10:37:32 AM
    Processing Events: 10:37:32 AM

    Processing Email Event: email -10:37:32 AM
    Attempted Email Distribution
    From:[from email]
    From Name:
    To:[my email]
    CC:
    BCC:
    Priority:0
    Subject:Test File Upload
    Message:[basesite]/Portals/0/DynamicForms_Uploads/a8e93a02-8f99-4659-a59a-072494329640.jpg

    Attachment:
    Email Type:Html
    *** Ending Debug Mode for Dynamic Forms ***

    -------------

    It doesn't seem to do any of the actual file uploading, at least the debug doesn't say it tried to. The link looks valid, the token seems to be generating fine. The problem is that when I click on the link to go to the file, I get a "File not found" error. And if I try to look in the upload folder, I don't see the file either. So I think it's not actually uploading the file.

    Is there a setting somewhere that I'm overlooking? I'm using the admin account, and it has all permission to the upload folder.

    Thanks for the help!


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi