-
-
Notifications
You must be signed in to change notification settings - Fork 144
Open
Labels
Description
We don't always want to server to handle file uploads, and it's easy enough to use the AWS SDK, but the Disk util is just too convenient. Would it be possible to add this feature to it?
Something like:
const { downloadUrl } = await this.disk.createPresignedDownloadUrl('docs/xxx.pdf', 'buffer', {
expiresIn: 3600
});
const { uploadUrl } = await this.disk.createPresignedUploadUrl('docs', content, {
expiresIn: 3600
});
Thought this does present a problem, to how to handle local file upload/downloads in this case, I don't have good idea for that one.
haneefkassam