-
Notifications
You must be signed in to change notification settings - Fork 192
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
[bug] Upload images is broken #1063
Comments
Did we forget to fix the way the upload in the comments? <div class="wc-Form-group js-ImageUploadView">
<form>
<label class="wc-UploadForm wc-UploadForm--new" for="image">
<div class="wc-UploadForm-wrapper">
<label class="wc-UploadForm-label wc-UploadForm-label--uploadForm">Attach images by <span class="wc-UploadForm-label--link">selecting them</span></label>
<input accept=".jpe,.jpg,.jpeg,.gif,.png,.bmp" class="wc-ButtonUpload js-buttonUpload" id="image" name="image" type="file">
</div>
</label></form></div> Should we get a real form too ;) aka
Do we have twice the feature at two different places? |
Yeah, I broke this. 💣 |
Yeah, sort of. We have the homepage image upload stuff, which works with postMessage'd base64 dataURIs (which come from add-ons) and regular file inputs and then issue page, which just has file inputs. When I "fixed" the homepage, I made the assumption that all image uploads would be POST's sending base64 data... forgetting about the issue page. |
It would be nice to abstract out the common upload methods into a mixin, maybe better as a refactoring bug once I fix this. |
|
Rather than convert the image to base64 on the client (which is what we do on the homepage to show the preview), then convert back to image on the server, let's just re-enable file uploads on the server. |
Try to upload an image in the comments of a bug. For example
And receiving from the server.
with a flash message.
Ping @miketaylr :)
The text was updated successfully, but these errors were encountered: