Upload Files to a Network Based Virtual Directory

Last post 06-17-2009, 11:43 PM by cutechat. 8 replies.
Sort Posts: Previous Next
  •  06-02-2009, 7:14 PM 52754

    Upload Files to a Network Based Virtual Directory

    Hi,
     
    Does the AjaxUploader work if uploading to a network based virtual directory in IIS?  (I have successfully uploaded files to the web server through a virtual directory, but cannot upload them to another location on our network).  Please help.
     
    Thanks,
     
    Greg
  •  06-03-2009, 11:46 AM 52767 in reply to 52754

    Re: Upload Files to a Network Based Virtual Directory

    Greg,
     
    Yes, have you set the correct permission to this UNC path?

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-03-2009, 2:09 PM 52775 in reply to 52767

    Re: Upload Files to a Network Based Virtual Directory

    The file upload location is set to the virtual directory alias.  And the proper setup for the unc path \\<servername>/\<share> was setup.  All ntfs and share permissions were set to full control for the user account with access to the share folder.  Do I only have to change the file location to be the share name in the application?  Is there something else that needs to be done in the code for the ajax uploader control?
  •  06-03-2009, 2:10 PM 52776 in reply to 52775

    Re: Upload Files to a Network Based Virtual Directory

    Fyi:  the unc path should be \\<servername>\<share>
  •  06-03-2009, 10:57 PM 52781 in reply to 52776

    Re: Upload Files to a Network Based Virtual Directory

    Hi,
     
    set the TempDirectory property to "\\server\folder"
      for web.config is
       <add key="CuteWebUI.AjaxUploader.TempDirectory" values="\\share\folder" />
     
    That's enough.
     
    but that is for storing the temporary files, (xxx.resx) , you need copy it to another place while processing the FileUploaded event.
     
    Regards,
    Terry
  •  06-08-2009, 2:46 PM 52872 in reply to 52781

    Re: Upload Files to a Network Based Virtual Directory

    Hi,
     
    Does that mean I need to create a virtual directory for both the temp folder and the upload folder?
     
    Thanks,
     
    Greg
  •  06-10-2009, 12:56 AM 52936 in reply to 52872

    Re: Upload Files to a Network Based Virtual Directory

    Greg,
     
    No need.
     
    Regards,
    Terry
  •  06-17-2009, 6:47 PM 53229 in reply to 52936

    Re: Upload Files to a Network Based Virtual Directory

    Hi Terry,
     
    We keep getting the following error message when trying to upload a file to another server:
    Access to the path '\\san02\appdata$\ERMS\Training\Requisition ID 100.5e5ffe09-68e9-4b70-9f2f-03043a36482a.File Upload - Sample 4.xls.resx' is denied.
     
    This is funny because we are testing with full control as a network administrator. 
     
    The web.config file has the following keys set under the <appSettings> tag:
    <add key="FileUploadLocation" value="/ERMS-Attachments/"/>
    <add key="CuteWebUI.AjaxUploader.TempDirectory" value="\\San02\appdata$\ERMS\Training" />
     
    FileUploadLocation is the actual location where the files are stored - virtual directory in IIS.  The actual Network directory is \\san02\appdata$\ERMS\Training.
     
    I don't fully understand how setting the temp directory works.  Does it have to be done on the web server or can I use a unc path (see above) as the value? 
     
    Any suggestions as to what I can do to resolve this issue?
     
    Thanks,
     
    Greg
     
     
  •  06-17-2009, 11:43 PM 53239 in reply to 53229

    Re: Upload Files to a Network Based Virtual Directory

    Greg,
     
    You need to setup the permissions settings of that network folder.
     
    You can set it can be read/write by everyone and try again.
     
    Regards,
    Terry
     
View as RSS news feed in XML