Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direct link URL to download files? #662

Open
GeeZuZz opened this issue Apr 12, 2018 · 6 comments
Open

Direct link URL to download files? #662

GeeZuZz opened this issue Apr 12, 2018 · 6 comments

Comments

@GeeZuZz
Copy link

GeeZuZz commented Apr 12, 2018

Is there any way to get a URL to download files in directory? Edit: Download all files in directory as a .zip, not individual files.

Let's say I browse files at http://files.test.com/subfolder3/

I want to get a URL I can share in email etc that goes directly to the download, instead of browsing.

something like http://files.test.com/subfolder3/?download

The download button only links to a javascript function...

@YXuuan
Copy link

YXuuan commented Apr 19, 2018

Mine is just seemed to be ok.
snipaste_2018-04-19_20-32-54

@GeeZuZz
Copy link
Author

GeeZuZz commented Apr 19, 2018

Sorry, should have specified that I meant making a zip of all files in a folder... I have a button in top left corner that will add all files to a zip and download.

@YXuuan
Copy link

YXuuan commented Apr 19, 2018

Is that your own custom feature?

@GeeZuZz
Copy link
Author

GeeZuZz commented Apr 19, 2018

No, it's a default function... But maybe a setting to enable.

@YXuuan
Copy link

YXuuan commented Apr 21, 2018

I looked up the code, found that the action to download files was to print the files' context directly to HTTP, so there was no URL for users that go directly to the download.

So you can:

  1. Change the code in _/path/to/h5ai/private/php/ext/class-archive.php, let h5ai output them into a local file and get the URL.
  2. Change the code in _/path/to/h5ai/private/php/core/class-api.php, add your own way to archive files and get the URL.

I will focus on it, if I get any process, I will leave a comment here.

@Fohdeesha
Copy link

Any updates on this? would be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants