7911 Posts in 1354 Topics by 930 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 2082 Views |
-
SWFUpload and htaccess password protected site

17 October 2009 at 11:27pm
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.
-
Re: SWFUpload and htaccess password protected site

18 October 2009 at 5:19am
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.
-
Re: SWFUpload and htaccess password protected site

19 October 2009 at 12:35am
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
| 2082 Views | ||
|
Page:
1
|
Go to Top |

