Configure Flash File Upload to override PROXY_URI part

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2013 04:52 AM
Hi,
Alfresco file upload script uses Alfresco.constant.PROXY_URI + myOverrideUrl for upload. What would be a way to change this PROXY_URI?
I have a use case to upload a file as an unauthenticated user. The backend webscript works, I can upload using URL "/alfresco/service/api/custom-upload?guest=true", But when uploading with Share flash uploader, I override the url (flashUploadURL), but I cannot override the whole thing. So I get a 401-Unauthorized. My guess is that even if the backend script doesn not need authentication, Share asks for it.
Is there a way to override the upload URL to go to /alfresco directly? Or configure Share to let me through as guest?
Alfresco file upload script uses Alfresco.constant.PROXY_URI + myOverrideUrl for upload. What would be a way to change this PROXY_URI?
I have a use case to upload a file as an unauthenticated user. The backend webscript works, I can upload using URL "/alfresco/service/api/custom-upload?guest=true", But when uploading with Share flash uploader, I override the url (flashUploadURL), but I cannot override the whole thing. So I get a 401-Unauthorized. My guess is that even if the backend script doesn not need authentication, Share asks for it.
Is there a way to override the upload URL to go to /alfresco directly? Or configure Share to let me through as guest?
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2013 05:13 AM
HI,
take a look to this http://www.ixxus.com/blog/2011/09/customising-the-upload-file-dialog-box-in-alfresco-share/
Hope this helps.
Regards,
Andrea
take a look to this http://www.ixxus.com/blog/2011/09/customising-the-upload-file-dialog-box-in-alfresco-share/
Hope this helps.
Regards,
Andrea

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2013 05:33 AM
Thanks, that was helpful. I thought of this solution (make a flash-upload-custom.js), but I wanted to avoid it if possible (because I also have to edit html-upload.js and dnd-upload.js this way).
Thanks anyway, that is a good article.
I
Thanks anyway, that is a good article.
I
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2013 07:26 PM
Hi,
You said you have to edit html-upload.js right?. May I know How you are changing html-upload.js please.
thanks in advance.
You said you have to edit html-upload.js right?. May I know How you are changing html-upload.js please.
thanks in advance.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2013 03:40 AM
Oh, I basically created a duplicate of it for non-authenticated users and pointed it to a different backend script, not to the original one. The new script would only allow uploads of certain mimetypes, and only to a certain publicly accessible folder.
