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'm using mdxeditor in my Next.js application with a private S3/MinIO storage for images (and attachments). While I can successfully upload images using presigned URLs, I'm facing issues with displaying the images in the editor due to URL expiration and permissions. Well basically, im not even sure if im at all on the right path...
So in my head, I cant really find a way to get these URL for private user content. Whenever I generate some kind of link its public, and ontop of that, I also need to manage expiered links, which is a whole other hassle for me. This has to be simpler somehow, right?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using mdxeditor in my Next.js application with a private S3/MinIO storage for images (and attachments). While I can successfully upload images using presigned URLs, I'm facing issues with displaying the images in the editor due to URL expiration and permissions. Well basically, im not even sure if im at all on the right path...
So in my head, I cant really find a way to get these URL for private user content. Whenever I generate some kind of link its public, and ontop of that, I also need to manage expiered links, which is a whole other hassle for me. This has to be simpler somehow, right?
Would really appreciate some feedback on this :)
Have a good evening, attached is my current code.
I upload the image like this:
And the api router looks like this:
Beta Was this translation helpful? Give feedback.
All reactions