You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this might be two issues, please let me know if I should split this; but the crux of the problem is that adding images to posts does not work.
After uploading the file, a notification is shown signifying a successful upload, but nothing else happens. This is because the ref for the MentionsInput is never set, which is how your code appends the div with the image in it. Simply adding inputRef={this.textAreaRef} after line 160 in PostEditor.ts makes that code work. However, the image still does not show up, because...
I am able to reproduce this on my own deployment, as well as on Async Labs' test deployment (https://saas-app.async-await.com). The link above is to an image I tried to upload onto Async's bucket as part of a post. I've looked through existing issues, commit comments, and the TODO to see whether this is a delayed feature, but since it's not mentioned elsewhere, I must assume it is a bug.
The text was updated successfully, but these errors were encountered:
tima101
added
Assigned - Async
Issue is assigned to at least one person. PR is assigned to at least one person.
Ready to test - Async
Issue is implemented and ready for testing. PR is merged.
and removed
Assigned - Async
Issue is assigned to at least one person. PR is assigned to at least one person.
labels
Aug 13, 2019
I think this might be two issues, please let me know if I should split this; but the crux of the problem is that adding images to posts does not work.
After uploading the file, a notification is shown signifying a successful upload, but nothing else happens. This is because the ref for the
MentionsInput
is never set, which is how your code appends the div with the image in it. Simply addinginputRef={this.textAreaRef}
after line 160 inPostEditor.ts
makes that code work. However, the image still does not show up, because...The S3 must be misconfigured somewhere. If you go directly to the link that S3 gives you, you're served an AccessDenied error like this (https://saas-posts.s3.us-west-1.amazonaws.com/877/ud3vncvuzc594lc9okpo/03Tomopteris_helgolandica.jpg?AWSAccessKeyId=AKIAI3ZSOZXFCGWGWL7Q&Content-Type=image%2Fjpeg&Expires=1565717571&Signature=5p5%2FNA2cHdUutBC6ivvDtiDCqno%3D&x-amz-acl=private). I so far have not figured out why this part is breaking; putting posts into the team avatars bucket didn't solve the issue, even though team avatars upload fine. Unfortunately I was not at all familiar with S3 before beginning to work with SaaS boilerplate, so my knowledge here is limited.
I am able to reproduce this on my own deployment, as well as on Async Labs' test deployment (https://saas-app.async-await.com). The link above is to an image I tried to upload onto Async's bucket as part of a post. I've looked through existing issues, commit comments, and the TODO to see whether this is a delayed feature, but since it's not mentioned elsewhere, I must assume it is a bug.
The text was updated successfully, but these errors were encountered: