Set a different URL for uploadMany field
Set a different URL for uploadMany field
Lucho_1312
Posts: 30Questions: 9Answers: 0
Hi!
I'm trying to set a different URL to use the uploadMany field, but it only seems to use the URL of the page I'm in.
Is there a way to set an special URL for this case? I cannot use the same URL that is set in the ajax property when I set the editor, because I'm setting it for a rest application in the backend.
Thanks!
Luciano
This discussion has been closed.
Replies
Hi,
Can you show me the Javascript you are using for the Editor initialisation please?
Thanks,
Allan
Sure,
This is the initialization code:
When I upload a picture, I just get a POST in the same URL that the page is. (in this case, it goes to "/products/items.html"
Thanks!
Luciano
Hi Luciano,
Thanks for the Javascript. There is an
ajax
option for theuploadMany
(and alsoupload
) which provides the ability to set a separate URL for how the file should be uploaded.See the Options section of the
uploadMany
reference documentation.Allan