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

Pass custom URLs to Office/GoogleDocs previews #2808

Closed
cristiangervasi opened this issue Dec 26, 2018 · 5 comments
Closed

Pass custom URLs to Office/GoogleDocs previews #2808

cristiangervasi opened this issue Dec 26, 2018 · 5 comments
Assignees
Labels

Comments

@cristiangervasi
Copy link

Hi, i'm trying to pass a custom "one-time use" URL to the documents preview with Office / Google Docs for security reasons.
Do i have to make an entirely new custom command? Or is there a way to pass a custom URL to the existing preview commands?
I have a PHP script that will handle all the generation and deletion of these one-time tokens, together with showing the right file for that token.
Maybe in the future i will need to do the same things with other file types and previews/editors.

@cristiangervasi
Copy link
Author

Hi, i don't want to bother you, but more than a feature request my issue was a question.
Is there a way to pass custom URL to the existing preview commands?

@nao-pon nao-pon self-assigned this Dec 29, 2018
@nao-pon
Copy link
Member

nao-pon commented Dec 29, 2018

@StreamZero I am working on this issue now. I will fix it within a few days.

@nao-pon
Copy link
Member

nao-pon commented Dec 29, 2018

@StreamZero I added a new option onetimeUrl of volume root options.

Please try

'onetimeUrl' => true

or

'onetimeUrl' => function($file, $options, $volumeInstance) { return 'String of onetimeurl'; }

To enable onetime URL support.

@cristiangervasi
Copy link
Author

@nao-pon Is this feature in the master branch or will it be in a new release?

@nao-pon
Copy link
Member

nao-pon commented Jan 1, 2019

@StreamZero Included in the next release, until then you can try it with Nightly Build.

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

No branches or pull requests

2 participants