cancel
Showing results for 
Search instead for 
Did you mean: 

Configure Flash File Upload to override PROXY_URI part

zladuric
Champ on-the-rise
Champ on-the-rise
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?
4 REPLIES 4

abarisone
Star Contributor
Star Contributor

zladuric
Champ on-the-rise
Champ on-the-rise
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

rockyrakhi
Champ in-the-making
Champ in-the-making
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.

zladuric
Champ on-the-rise
Champ on-the-rise
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.