3dgeo-heidelberg / pytreedb

Python package providing a file and object-based database to store tree objects.
Other
31 stars 4 forks source link

Webfrontend: download of files #55

Closed bhoefle-3dgeo closed 2 years ago

bhoefle-3dgeo commented 2 years ago

Please add file prompt for all downloads such that the user can choose where and how to name the download of files.

annachiu7 commented 2 years ago

Users are already always able to choose the download location and are able to change the file name. The "open/save as" prompt is a part of browser settings, and the frontend has nothing to do about it.

bhoefle-3dgeo commented 2 years ago

I thought that with defining content disposition you can say that it is an attachment. This is what I can remember slightly from PHP times long ago but might me more related to server-side issues. Of course, you cannot control browser behaviour but support downloading. I think in HTML5 you can also specify the download attribute for hyperlinks: . Please add those - if applicable.

annachiu7 commented 2 years ago

Ok, I just added the download attributes in commit ed97599. And yes, I also looked into content disposition. I am already working on improving the flask responses if files are directly provided for download (if frontend doesn't need to read/edit them beforehand)

annachiu7 commented 2 years ago

I think we can close this now?

bhoefle-3dgeo commented 2 years ago

After that I think we can close it and reopen in case of further problems.