Replies: 1 comment 7 replies
-
Yes, you can do this. First, disable random file names: [paste]
# random_url = { type = "petname", words = 2, separator = "-" }
# random_url = { type = "alphanumeric", length = 8 } Now you can give a custom file name to the uploaded file with using the form field: $ curl -F "file=@x.txt;filename=wow.nice" http://localhost:8000
http://localhost:8000/wow.nice
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had another small use case: My reaction folder can be enhanced by rustypaste 😼 But needs one small thing I couldn't find on the readme.. Can I decide resulting filename while uploading the file? No random or anything.
Beta Was this translation helpful? Give feedback.
All reactions