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

Storage class should expose head operation & range requests #6830

Closed
marksteele opened this issue Sep 19, 2020 · 5 comments
Closed

Storage class should expose head operation & range requests #6830

marksteele opened this issue Sep 19, 2020 · 5 comments
Labels
feature-request Request a new feature Storage Related to Storage components/category

Comments

@marksteele
Copy link

Is your feature request related to a problem? Please describe.

I would like to be able to perform a HEAD operation on an object stored in S3 (ex: so that I can determine the file size) as well as the ability to perform range requests (to read specific byte ranges out of a file). In my case, to retrieve just a few bytes at the end of a file.

Describe the solution you'd like

  • A head operation in the Storage API that would return the headers of the request as a map.
  • The ability to provide byte offsets to the get call (to generate properly signed urls)

Describe alternatives you've considered

Possibly expose the raw S3 client and utility functions to get key prefixes for logged in user, etc... That would allow for these types of advanced use-cases to be implemented.

Additional context

@marksteele marksteele added the feature-request Request a new feature label Sep 19, 2020
@amhinson amhinson added the Storage Related to Storage components/category label Oct 19, 2020
@kierancrowntrt
Copy link

I'd like to see this also. Possibly relates to #5044

@stocaaro
Copy link
Member

stocaaro commented Jun 2, 2022

Related to #3236

@pacchij
Copy link

pacchij commented Apr 23, 2023

I am also waiting for this functionality. Ability to get file last modified attribute is much needed to see if file changed.
In my use case, I want to download only if file changes. Is this possible with amplfiy?

@kvramyasri7
Copy link
Contributor

kvramyasri7 commented Jun 20, 2023

Now we can access properties of file using Storage.getProperties . Please do find the Reference Doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature Storage Related to Storage components/category
Projects
None yet
Development

No branches or pull requests

8 participants