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

Provide a path compatible with is_file #1334

Closed
VincentLanglet opened this issue Jul 27, 2021 · 1 comment
Closed

Provide a path compatible with is_file #1334

VincentLanglet opened this issue Jul 27, 2021 · 1 comment

Comments

@VincentLanglet
Copy link
Contributor

Feature Request

Q A
New Feature yes
BC Break no

Scenario / Use-case

HI @frankdejonge
Related to dustin10/VichUploaderBundle#1217 (comment)

When using gaufrette, before downloading a file, the path is gauffrette://folder/file.jpg.
Running is_file on this path is returning true and then the file could be downloaded with this path too.

When using flysystem, $fs->readStream($path);, the path to use is basically the name of the file.
But this path is not compatible with the method is_file, which return false.

Is there a way to get a is_file compatible path without downloading the file and saving it somewhere ?

@VincentLanglet
Copy link
Contributor Author

Closing in favor of dustin10/VichUploaderBundle#1217 (comment)

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

No branches or pull requests

1 participant