Error on upload

Last post 03-05-2013, 9:57 PM by cw808. 4 replies.
Sort Posts: Previous Next
  •  03-03-2013, 6:08 PM 76972

    Error on upload

    Hi

     

    I have another issue I need help with. I had uploaded a set of photos through the admin console to a directory....about 15 images. Now I try to add more and I get the error:

     

    error from webpage

     Not allow edit!

    at DotNetGallery.GalleryBrowser.RequireEditPermission()

    at DotNetGallery.GalleryBrowser.UploadFiles(String categoryid)

     

    Any help appreciated.

    Thanks

     

  •  03-04-2013, 1:20 PM 76976 in reply to 76972

    Re: Error on upload

    Hi,

     

    Try set AllowEdit to true in the target directly.

     

          <DotNetGallery:GalleryBrowser runat="server" ID="GalleryBrowser1" Layout="SlideShow"  AllowEdit="true" />

     

    Regards,

     

    Ken 

  •  03-04-2013, 5:29 PM 76978 in reply to 76976

    Re: Error on upload

    Hi

     

    This does work. Is there any reason why doing so in the code behind doesn't work? Do I need to do this way going forward?

    Thanks

     

  •  03-05-2013, 12:52 PM 76981 in reply to 76978

    Re: Error on upload

    Hi cw808,

     

    I thing you added the code in page load event, try add in Init.

     

    1. protected override void OnInit(EventArgs e)  
    2.  {  
    3.      base.OnInit(e);  
    4.      GalleryBrowser1.AllowEdit = true;  
    5.  }  
     

    Regards,

     

    Ken 

  •  03-05-2013, 9:57 PM 76984 in reply to 76981

    Re: Error on upload

    In fact that is exactly what I did. Moved to OnInit as you suggested and working fine now.

     

    Thanks!

View as RSS news feed in XML