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

edit album cover art #98

Open
simonv3 opened this issue Apr 27, 2022 · 4 comments
Open

edit album cover art #98

simonv3 opened this issue Apr 27, 2022 · 4 comments
Labels
enhancement New feature or request needs: api Needs something changed on the resonate API

Comments

@simonv3
Copy link
Collaborator

simonv3 commented Apr 27, 2022

POST https://dash.resonate.coop/api/user/upload

multipart/form-data

-----------------------------1916356451589352817313741913
Content-Disposition: form-data; name="uploads"; filename="california-poppy-1362728_960_720.jpg"
Content-Type: image/jpeg

ÿØÿà

returns

{
	"data": {
		"id": "2bb79d8c-89d6-45c2-87a3-f7b49e66b660",
		"status": "processing",
		"owner_id": 2359,
		"filename": "2bb79d8c-89d6-45c2-87a3-f7b49e66b660",
		"size": 133314,
		"mime": "image/jpeg",
		"hash": "67dfa2aec20e63c4571ef3a03b4234506a86c227",
		"updatedAt": "2022-05-02T00:05:28.424Z",
		"createdAt": "2022-05-02T00:05:28.424Z",
		"filename_orig": "california-poppy-1362728_960_720.jpg",
		"image": {
			"id": "2bb79d8c-89d6-45c2-87a3-f7b49e66b660",
			"filename": "california-poppy-1362728_960_720.jpg",
			"filename_prefix": null,
			"owner_id": 2359,
			"description": null,
			"size": 133314,
			"hash": "67dfa2aec20e63c4571ef3a03b4234506a86c227",
			"status": "processing",
			"mime": "image/jpeg",
			"metadata": "{\"dimensions\":{\"width\":960,\"height\":719}}",
			"updatedAt": "2022-05-02T00:05:28.438Z",
			"createdAt": "2022-05-02T00:05:28.000Z"
		}
	}
}

And the PUT to the trackgroup then includes the id above in the cover field

@simonv3 simonv3 added the enhancement New feature or request label Apr 27, 2022
@simonv3 simonv3 added this to the 0.4.0 milestone Apr 27, 2022
@simonv3
Copy link
Collaborator Author

simonv3 commented May 3, 2022

This looks like it won't be possible until we use the oauth2 api stuff.

@simonv3 simonv3 removed this from the 0.4.0 milestone May 3, 2022
@simonv3 simonv3 added the needs: api Needs something changed on the resonate API label May 3, 2022
@whatSocks
Copy link
Collaborator

strange, I could have sworn this was possible with the current API

@simonv3
Copy link
Collaborator Author

simonv3 commented May 15, 2022

It's possible with the API beam has since switched to! (v3). Though I'm not sure what I documented above is what that API is. It kind of looks like that's the user-api?

@simonv3 simonv3 removed the needs: api Needs something changed on the resonate API label May 15, 2022
@simonv3
Copy link
Collaborator Author

simonv3 commented Jun 7, 2022

It looks like dash.resonate.coop/api/user/upload rejects all CORS requests.

@simonv3 simonv3 added the needs: api Needs something changed on the resonate API label Jun 7, 2022
simonv3 added a commit that referenced this issue Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs: api Needs something changed on the resonate API
Projects
None yet
Development

No branches or pull requests

2 participants