dontfile
dontfile copied to clipboard
Edit filename
Editing the filename would be great! It can be either a button or a edit-in-place!
Do you mean the ability to edit the last path of the URL @MatheusRich? 🤔 What if the new file name has already taken? Have you already integrated a way to show an error to user?
@wilbertliu Actually this issue means editing the FILE name, not the route. Like this:
Let's suppose you have this file.

And you want to change the file name to the-coolest-file.png, resulting in something like this:

I've started some work on this to edit the uploaded file name! ActiveStorage is not helping though 😅 but I'm some of the way in
Oh I see..
How about making the file name part to use text input instead? So people could directly change the file name and probably auto-save it?
Sincerely, Wilbert Liu
On 9 Oct 2018, at 9:35 PM, Matheus Richard [email protected] wrote:
@wilbertliu Actually this issue means editing the FILE name. Like this:
Let's suppose you have this file.
And you want to change the file name to the-coolest-file.png, resulting in something like this:
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
What I thought (and started working on) is on having an Edit button (using font awesome icons), something like this:

And changing the file name to an input element once clicked using js and ajax to perform a patch request, I have slightly worked on this but if @wilbertliu wants to take it there's no problem, I didn't say before that I was taking it
The ball should be yours @MatheusRich 😀
It can be either a button or a edit-in-place (clicking twice on the filename). I'm open to the possibilities.