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

upload from file using presigned URL in amplify gen2 #14111

Open
cookiejest opened this issue Jan 3, 2025 · 2 comments
Open

upload from file using presigned URL in amplify gen2 #14111

cookiejest opened this issue Jan 3, 2025 · 2 comments
Labels
feature-request Request a new feature Gen 2 Issues related to Gen 2 Amplify projects Storage Related to Storage components/category transferred This issue was transferred from another Amplify project

Comments

@cookiejest
Copy link

Environment information

Want a way to upload a file via amplify gen2 using a signed url instead of the fileUpload function.

Describe the feature

Need to be able to write files via a custom library using a pre-signed URL for file upload.
I see this example in the docs, does it support file upload or only file download?

import { getUrl } from 'aws-amplify/storage';

const linkToStorageFile = await getUrl({
  path: "album/2024/1.jpg",
  // Alternatively, path: ({identityId}) => `album/{identityId}/1.jpg`
});
console.log('signed URL: ', linkToStorageFile.url);
console.log('URL expires at: ', linkToStorageFile.expiresAt);

Use case

Need to upload using a custom httpfs library that does processing.

@cookiejest cookiejest added the pending-triage Issue is pending triage label Jan 3, 2025
@ykethan
Copy link
Member

ykethan commented Jan 3, 2025

Hey,👋 thanks for raising this! I'm going to transfer this over to our JS repository for better assistance 🙂

@ykethan ykethan transferred this issue from aws-amplify/amplify-backend Jan 3, 2025
@github-actions github-actions bot added the pending-maintainer-response Issue is pending a response from the Amplify team. label Jan 3, 2025
@ykethan ykethan added Storage Related to Storage components/category transferred This issue was transferred from another Amplify project Gen 2 Issues related to Gen 2 Amplify projects and removed pending-maintainer-response Issue is pending a response from the Amplify team. labels Jan 3, 2025
@HuiSF HuiSF added the feature-request Request a new feature label Jan 3, 2025
@github-actions github-actions bot removed the pending-triage Issue is pending triage label Jan 3, 2025
@HuiSF
Copy link
Member

HuiSF commented Jan 3, 2025

Hi @cookiejest thanks for reaching out. Currently, the getUrl API provided by the Storage category supports only download operations. We will look into this as a feature request.

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 Gen 2 Issues related to Gen 2 Amplify projects Storage Related to Storage components/category transferred This issue was transferred from another Amplify project
Projects
None yet
Development

No branches or pull requests

3 participants