Quote from: applepie on June 27, 2023, 01:36:56 AM
Can you explain again please?
the upload button is a html-function, it works with the (HTML-) Code
input type="file". if you click on this button, it starts a dialog with the locale machine, doesn't matter, what kind of systems, works also in windows, android, mac etc. the same for the print-button, email-link etc, they all using intern functions from this locale machine.
the locale machine has a (big) intern cache and part of this cache is the last used adress for this file-select. if you build a simple html-form with a button like this, you see, that the select everytime start on this place, where you select a file the last time and send this form after the select. if you use now your browser online on the webadress
http://abc.com and you start's the file-select-dialog, the browser / locale machine search in the cache for the last place on your harddisk. if he found a adress from
http://abc.com, it use this folder as start-point, if not, it starts on the Workplace, for example in the windows-explorer or in the file-manager.
with javascript and visual basic, it is possible, to overwrite the adress from the cache and set a fix startpoint, somewhere on you locale machine, but it make's only sense, if you're a single user and you work the whole time on this machine. For example: i'm using ~ 20 partitions on my pc, called from A: to Q: and backwards from Z: to R: as locale network-paths.
so i can set a start-point for the file-select on my machine only to harddisk Q:, but maybe nobody has also a partition Q:. Result is: only users with a harddisk Q: can use my path, the rest get an error. For me, it works only, if i stay at home on my pc, where i've the partion Q:, but not on a other machine like tablet, phone etc
Because of that, i'm very sure, that this addon newer use a script like this, to change the start point for the file select. Ruud has the possibility, to download also the older versions of this module and there is no code for that - thats why, i've to say: you're wrong or it was coincidence, that your file-select start's in the locale folder inside of the media from
a locale backup.
but i cannot say, it is not possible, to have a file browser with this function
two more options with a lot of work...
if you take a look into the ckeditor, you have there a connector with a file browser. so you see, it's possible, to have a file browser for the media-administration. but its a very big construct (half size from the ckeditor) and many things to do, to add this connector to a small module like minihero. the addon has a size from ~ 21kb. with a connector like the ckeditor, it needs maybe 2 or 3 megabytes
the other way is a globale upload function inside of WB. i remember, that we talk about this a couple of years ago. this solution replace the WB-Media-Management and use a seperat addon like elfinder. Every up- or download, every file select goes over this new addon. But in this case, you've to change every other addon also, to add a interface to the media module. its is possible in the basis package of a cms like WB, but not in all addons. too much work, to change everything.
QuoteDo you mean it is not possible to upload photo from the Image Folder in
it is possible, if you have a locale copy on your machine and you select the file from there.
it is not possible, if you want to select a file online from a server adress, for example: from the online-media-folder