mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #139] CORS issue when uploading via browser #110
Labels
No labels
Feature request
Feature request
bug
cant reproduce
enhancement
help wanted
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pictshare#110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gevera on GitHub (May 11, 2022).
Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/139
Is there an example of how to upload images via regular form data ?
I've been trying to use pictashare, hoewver getting errors when uploading
Access has been blocked from origin by CORS policy@geek-at commented on GitHub (May 11, 2022):
Are you having these problems on the demo page too? https://pictshare.net
or just on your own hosted instance?
@gevera commented on GitHub (May 11, 2022):
I do have the same issur on https://pictshare.net/ and on my own instance of Pictashare in docker.
Just for reference, i can upload images via Insomnia, Curl or Postman, but not from the browser
@geek-at commented on GitHub (May 11, 2022):
oh wait you're not using the interface from pictshare, you try to directly upload from another website?
@gevera commented on GitHub (May 11, 2022):
Thats correct. Using the API
@geek-at commented on GitHub (May 11, 2022):
The API is meant to be used by a backend service not a browser since this will always trigger a CORS problem. Better upload from the backend. If you want to upload via the browser, use the built-in upload form of the landing page