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

Issue with Customizing Upload Location #14

Open
gamer45hg57 opened this issue Jan 20, 2025 · 3 comments
Open

Issue with Customizing Upload Location #14

gamer45hg57 opened this issue Jan 20, 2025 · 3 comments

Comments

@gamer45hg57
Copy link

Hi,

I’ve been using the r2-bucket-uploader and I’m encountering an issue. Despite trying several configurations, the uploaded files always go to the default "resource" folder. I’m trying to upload files to a different location, but I can’t seem to figure out how to modify the upload path.

Could you please guide me on how to replace or customize the location of the uploaded file? Any help would be greatly appreciated!

Thanks in advance.

Best regards,
gamer

@anuveyatsu
Copy link
Member

Hi @gamer45hg57

You can change it here https://github.com/datopian/r2-bucket-uploader/blob/main/pages/api/upload.ts#L27

Which upload strategy are you using?

@anuveyatsu
Copy link
Member

For multipart it is here https://github.com/datopian/r2-bucket-uploader/blob/main/pages/api/multipart-upload/%5Bendpoint%5D.ts#L56

@gamer45hg57
Copy link
Author

Thanks, bro, for your help. It was just a local storage issue because after changing the key, it still uploaded to the same folder. So, I just build it again, and now it works

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

2 participants