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

Add button to replace file on file and image fields #49

Open
gmclelland opened this issue Nov 4, 2016 · 4 comments
Open

Add button to replace file on file and image fields #49

gmclelland opened this issue Nov 4, 2016 · 4 comments

Comments

@gmclelland
Copy link

Carried over from ryancramerdesign/ProcessWire#2047

Feature Request: If possible one thing I would like to see is better consistency for replacing files in file and image fields. This is a task that content editors have to do constantly, so I would like to make it dead simple and obvious.

Here is some quick mockups:

For image fields:
image

When the "Replace Image" Button is clicked, a modal dialog pops up.
image

For File Fields:
Same thing...It opens a dialog to replace the file
image

What do you think? I'm not sure what it would take to code this, but I thought I would throw it out there in case someone is interested.

@rolandtoth also suggested this:
Adding a bigger file icon to the field could be used as a drag-and-drop area so it could work as in the new image fields:

image

@Lazerproof
Copy link

It would be very useful addition to image and file field.

@theo222
Copy link

theo222 commented Sep 6, 2017

Yes, this would be useful.
It would also help retain the sort order and text or additional information.

@gmclelland
Copy link
Author

I would also like to see it replace the file and keep the same file name when the original file is replaced.

Example:
Page has a file field that contains a file "guide-to-processwire.pdf". A department send me a new file "guide-to-processwirev75a45.pdf" and request for me to replace the file. I navigate the edit the page and click a "Replace" button or link and choose the new file and save the page. When I look at the file field it still contains "guide-to-processwire.pdf" and not "guide-to-processwirev75a45.pdf"

All links within the main body copy and throughout the site do not break because they are still linking to "guide-to-processwire.pdf"

I get these kind of request ALL THE TIME. Usually the file they send me has some kind of cryptic name.

@gmclelland
Copy link
Author

For those that don't keep up in the forums, I just wanted to add there is also now a module https://processwire.com/talk/topic/19016-files-rename-replace/ for this created by @Toutouwai.

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

3 participants