Skip to content

upload from file using presigned URL in amplify gen2 #14111

Open
@cookiejest

Description

@cookiejest

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Gen 2Issues related to Gen 2 Amplify projectsStorageRelated to Storage components/categoryfeature-requestRequest a new featuretransferredThis issue was transferred from another Amplify project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions