Upload images to a separate server

Last post 03-14-2008, 3:28 PM by dgertz. 2 replies.
Sort Posts: Previous Next
  •  03-14-2008, 10:35 AM 37973

    Upload images to a separate server


    Problem: I need to upload and store images on a separate server other than the server running the cute editor.
     
    Environment:
     
    Windows 2003 running IIS6. 
    IE 7 (7.0.5730.13)
    Cute Editor for .Net
       CuteEditor.dll (6.0.0.0)
       CuteEditor.ImageEditor.dll (6.0.0.0)
     
    Solution so far: 
     
    1.  Within IIS, under my _images directory, i've created a Virtual Directory called cs.  This virtual directory points to the directory on the "other" server that contains the images. 
     
    2.  Within my .Net page, i've set both the SetSecurityGalleryPath and ImageGalleyPath to "~/_images/cs for the editor
     
    3. When I run my web application, the web page successfully renders the CuteSoft editor.  When I select the icon to Insert Image, it successfully brings up InsertImage.aspx and gives me the list of images on the "other" server via "~/_images/cs".
     
    So far so good.
     
    4.  Now when I click the Upload button on InsertImage.aspx, the Choose File dialog box displays.  When I select the image I wish to upload, and click Open on the dialog it appears the CuteSoft is attempting to upload the file, but displays the "Unable to upload file." error dialog box.
     
    UGH !!!
     
    What I've done so far:
     
    1.  I've read "almost" every forum posting with the words "Unable to upload file" in it.  The common fix response is .... "It's a permissions problem.
     
    2.  To address the permissions problem, I've done the following:
     
       a.  Created a new domain user
     
       b.  On the web server, I've modified the Identity of the AppPool running the website to the new domain user. 
     
             i.  Added the user to the IIS_WPG group and ran aspnet_regiis.exe -ga <User> to grant the user access to the IIS metabase and other directories used by ASP.NET (NOTE: Under this configuration, the web site runs as expected.)
     
       c.  On the "other" server that contains the images, I've grants Full Control of the directory to the new domain user.
     
       d.  For the CS virutal directory mentioned above, I have the virtual directory "Connect as ..." the new domain user to the directory on the other server.
     
    SO....The web site, the virtual directory and the directory on the "other" server all are bound with the new domain user's information.  Under this configuration, I can read via InsertImage.aspx all the images and insert them into the CuteSoft editor, but I still CAN NOT upload files.
     
    Is there anyway to see what's going on or get a better understanding of how CuteSoft uploads files/images?  Is it possible with CuteSoft, to manage images in the configuration above?
     
    If you'd like screen shots or chat via your Live Support IM client, please let me know.
     
    Any immediate assistance will be greatly appreciated.
     
     
  •  03-14-2008, 11:43 AM 37976 in reply to 37973

    Re: Upload images to a separate server

  •  03-14-2008, 3:28 PM 37984 in reply to 37976

    UPDATE: FIX: Upload images to a separate server


    So the final configuration setting that got the upload working, was to add the domain user to the Web share of the directory on the "other" server with Full Control.  So this would be Step 2e. to the list above.
     
    As for Adam's quick reply.  First, THANKS !!!!  Secondly, if you follow the steps in 2. above and by binding the Identity of the AppPool to the domain user, you do not to add the identity impersonate to the web.config.  The reason is because the website bound to the AppPool is running under the domain user.  You can verify this by looking at System.Security.Principal.WindowsIdentity.GetCurrent().  You will see that is it the domain user and not ASP service account.
View as RSS news feed in XML