Different url for download #3386
LeonSebastianCoimbra
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
not sure i will need it really, but i was thinking if there are some drawback to add a different url for the download... almost like there is a different url for the uploads.
Just to recap, my idea is to add in "options" something similar to:
elFinder.prototype._options = { ... url : '', urlUpload : '', urlDownload: '', ... }
I peeked on the code and if i am not mistaken the url for download is composed in "this.openUrl" function... so it can be simple to change it from
url = this.options.url;
to
url = this.options.urlDownload || this.options.url;
This can work only if this is the only point in which the download url is composed.
Do you see any drawback or did i omit something? ElFinder is a very large software and i can't say to know it very well... so if someone can tell me if this is correct or not it can be very helpful.
Why should i want a different url? Well... i am trying to split the web application in two: one (in one url) that will provides the ElFinder files and the other (on another url) that will provide the connector.... For upload and simple API calls there are no problems, but for downloading big files it is more convenient that the endpoint is in the first url....
Thanks in advance for any response.
Beta Was this translation helpful? Give feedback.
All reactions