Opened 4 weeks ago
Last modified 3 weeks ago
#65874 new feature request
Alt Text updating during uploading
| Reported by: | cclambie | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | ui, accessibility |
Description
I would love to write the alt text into the box whilst the image is uploading.
screen shot showing that the box is greyed out whilst uploading:

discussion (here)https://wordpress.org/support/topic/fr-alt-text-input-field-whilst-uploading/#post-18992164
The idea is that the "alt-text" box would be available to type into as the media uploads - making the workflow easier, and the likeliness of adding alt text higher.
Change History (5)
#2
@
4 weeks ago
The fields are readonly for a deliberate reason: when upload completes, fileUploaded() does a full model.set(response.data) merge that wipes any client-side input. This was the exact bug fixed in #58783 (WP 6.5) - disabling editing was the chosen fix. So this isn't an oversight, it's a tradeoff.
The real question is: should we enable editing without re-introducing data loss?
#3
@
4 weeks ago
Thanks for pointing out this was a fix to a problem - data loss is worse than this.
I don't understand why the data couldn't be held in a cache/ cookie until the image uploads?
Or
DB record is created based on the filename.
eg.
On pressing Upload button
Usual f = e.target.files[0]
Then filter on type
Then f.name sent to the Db (duplication check/ in case of partial /failed upload)
If duplicate - overwrite, or reupload option
If not - Db entry created
Then editable fields - with async background uploading
Then a submit button to update the Db - no refresh on the page on_upload as it has now
Sorry I can't get my head into this code to figure it out, but I presume it is somewhere in media-upload.php
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: #58783 (Data was lost when the upload process completed.)