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

Feature request - Adding optional parameter allowing to force uploads to use specific filename #18

Closed
karowski opened this issue Jan 8, 2024 · 3 comments

Comments

@karowski
Copy link
Contributor

karowski commented Jan 8, 2024

Hello,

In our project we have the need to rename each uploaded file to a specific filename. In the provided patch, an optional parameter has been added to allow the specification of a fixed filename. If set, all uploaded files will be renamed to the specified filename.

This functionality may be useful to others as well.

Thanks

https://gist.github.com/karowski/77aaca7f139243dc11fc5ab358f3ef36

@git001
Copy link
Owner

git001 commented Jan 8, 2024

Hi @karowski .

looks like a good Idea.
Please can you create a pull request.
Maybe you can add the feature to replace some variables like https://github.com/git001/caddyv2-upload/blob/main/upload.go#L99 and some other repl lines.

@karowski
Copy link
Contributor Author

karowski commented Jan 8, 2024

Thanks for the fast reply.

I have created a pull request. However, I did not fully understand your request regarding the replace.

@git001
Copy link
Owner

git001 commented Jan 8, 2024

close with #19

@git001 git001 closed this as completed Jan 8, 2024
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