Skip to content
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

Can't upload images #568

Open
danieladugyan opened this issue Nov 9, 2024 · 2 comments
Open

Can't upload images #568

danieladugyan opened this issue Nov 9, 2024 · 2 comments
Labels
bug Something isn't working as intended

Comments

@danieladugyan
Copy link
Contributor

Description

I tried to publish an article with an image, but it didn't work even though I tried multiple times.
original source: in-person bug report

Steps to reproduce

Step 1. Go to https://www.dsek.se/news/create.
Step 2. Add an image.
Step 3. Try to publish the article.

Further information

It works sometimes so I'm guessing this has something to do with the image, probably its size. If that's the case, make sure the error message reflects that clearly.

@danieladugyan danieladugyan added the bug Something isn't working as intended label Nov 9, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Web Nov 9, 2024
@danieladugyan danieladugyan changed the title Can't upload news article with image Can't upload images Nov 28, 2024
@danieladugyan
Copy link
Contributor Author

Follow this guide to implement file uploads directly from the client. Return the pre-signed URL to the client and call fetch from the client instead of from +page.server.ts.

@danieladugyan
Copy link
Contributor Author

@trilleplay Feel free to fix this if you want to, otherwise we'll get to it next Tuesday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant