You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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....
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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