dontfile icon indicating copy to clipboard operation
dontfile copied to clipboard

Edit filename

Open MatheusRich opened this issue 7 years ago • 7 comments
trafficstars

Editing the filename would be great! It can be either a button or a edit-in-place!

MatheusRich avatar Aug 02 '18 00:08 MatheusRich

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 avatar Oct 09 '18 14:10 wilbertliu

@wilbertliu Actually this issue means editing the FILE name, not the route. Like this:

Let's suppose you have this file. image

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

MatheusRich avatar Oct 09 '18 14:10 MatheusRich

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

vzqzac avatar Oct 09 '18 14:10 vzqzac

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.

wilbertliu avatar Oct 09 '18 14:10 wilbertliu

What I thought (and started working on) is on having an Edit button (using font awesome icons), something like this:

image

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

vzqzac avatar Oct 09 '18 14:10 vzqzac

The ball should be yours @MatheusRich 😀

wilbertliu avatar Oct 10 '18 06:10 wilbertliu

It can be either a button or a edit-in-place (clicking twice on the filename). I'm open to the possibilities.

MatheusRich avatar Oct 10 '18 12:10 MatheusRich