Jump to:

7938 Posts in 1541 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » SWFUpload and htaccess password protected site

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2479 Views
  • LesC
    Avatar
    Community Member
    70 Posts

    SWFUpload and htaccess password protected site Link to this post

    Hi,

    I'm trying to let a client upload their images on a prototype version of their site that is blanket protected by htaccess in the root folder.

    However SWFUpload fails with a 401 (not authorized), because it doesn't pass the logged in details.

    Is there anyway for me to protect a site from access but still allow the admins to upload files?

    I've tried only protecting the sapphire folder but it still fails.

  • UncleCheese
    Avatar
    4085 Posts

    Re: SWFUpload and htaccess password protected site Link to this post

    SWFUpload will not work with secure or password protected connections because the Flash request starts a new session. You need to make sure the upload_url, which I believe is /FileDataObjectManager_Controller/handleswfupload, is open to the public. You can get the exact url by setting SWFUploadConfig::debug(); and looking in the debug window.

  • LesC
    Avatar
    Community Member
    70 Posts

    Re: SWFUpload and htaccess password protected site Link to this post

    Thanks UncleCheese - I thought it'd be something to do with the Flash element (it has the same problem in Rails!).

    Do you (or anyone) know how to turn off htaccess protection for a single folder when the whole site is protected?

    Cheers

    L

    2479 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.