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
Update attachment button unnecessarily displayed #3873
Comments
@lairdshaw what do you think, you have done a lot of work with attachments lately :) |
@Eldenroot Agreed that this button is useful, as explained by doylecc in the original thread (post number 3). Also agreed that it should not be visible when there are no longer any attachments. It should be pretty simple to remove/hide it in Javascript if/when "Remove" is clicked (and confirmed) for the last attachment. |
I think it does the same work as deleting an attachment with name "xyz" and then re-adding some attachment with the same name. |
It does one other thing which makes it non-redundant and worth keeping: it maintains the same attachment ID. |
@lairdshaw for the user updating his attachment, does it even matter? |
@rajat315315 Yes, it sometimes does: when the attachment is included already in one or more posts using |
If we remove we would be removing a feature that is useful for some people and might be used by somebody. |
Completely confused about "Update Attachment" button. The thing its doing currently is nothing but what "Add Attachment" does. So why the button is there? Can anyone guide me in which step this buttons action is unique?
This button should be removed or if really intended to update the attachment - it should be multiple, per already attached file list.
Point me out if I am missing something.
And now the bug:
We have switched to AJAX file remove. Well.
Update attachment appears only if atleast one file is already attached. But AJAX delete does not respect it.
Remove all the already attached files - "Update Attachment" button is still there. Refresh the page - its gone.
Original thread: Update attachment
The text was updated successfully, but these errors were encountered: