Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Media upload failure #55

Closed
Letiteuf55 opened this issue Oct 23, 2017 · 3 comments
Closed

Media upload failure #55

Letiteuf55 opened this issue Oct 23, 2017 · 3 comments

Comments

@Letiteuf55
Copy link

Hello, i'm hosting an instance of Mastodon but when i use Amaroq, i can't upload picture, i've got this error :

Failed to post status with error: Media upload failure

Any way to find how i can solve that ?

ReticentJohn added a commit that referenced this issue Nov 18, 2017
…in size requirements

* This starts with enforcing a max size of 1024x1024, and then converts to a jpeg starting with no compression and compresses by increments of 10% until the max file size is met (8MB)
* This does not apply to video

Signed-off-by: John Gabelmann <john@floof.dog>
@ReticentJohn
Copy link
Owner

This should now be infinitely better as of v1.1.7 :3

@thegcat
Copy link

thegcat commented Dec 6, 2017

I am still seeing this error in Amaroq v1.1.8.

I had a look at the logs and the tmp files return a mime type of application/octet-stream; charset=binary, which probably is the problem. Is there any way to get a hand on what Amaroq tries to upload to the server to compare the two and see if anything in-between might mangle stuff?

@tithonium
Copy link

I'm having the same issue in 1.1.8

I'm on an iPhone X, trying to post a photo taken by that device.

The logs I get out of docker log mastodon_web_1 aren't very helpful (to me, anyway), but in case:

[0a025e5f-02b5-479e-89f0-bdf3f7436678] Command :: file -b --mime '/tmp/RackMultipart20180327-11-6ocp5w.jpeg'
[0a025e5f-02b5-479e-89f0-bdf3f7436678] [paperclip] Trying to link /tmp/RackMultipart20180327-11-6ocp5w.jpeg to /tmp/d915330bd02cfa5c81ba993c185c6cc320180327-11-1hgr6rf.jpeg
[0a025e5f-02b5-479e-89f0-bdf3f7436678] [paperclip] Trying to link /tmp/d915330bd02cfa5c81ba993c185c6cc320180327-11-1hgr6rf.jpeg to /tmp/d915330bd02cfa5c81ba993c185c6cc320180327-11-iu1vxa.bin
[0a025e5f-02b5-479e-89f0-bdf3f7436678] Command :: file -b --mime '/tmp/d915330bd02cfa5c81ba993c185c6cc320180327-11-iu1vxa.bin'
[0a025e5f-02b5-479e-89f0-bdf3f7436678] [paperclip] Trying to link /tmp/d915330bd02cfa5c81ba993c185c6cc320180327-11-1hgr6rf.jpeg to /tmp/d915330bd02cfa5c81ba993c185c6cc320180327-11-1cosnns.bin
[0a025e5f-02b5-479e-89f0-bdf3f7436678] Command :: file -b --mime '/tmp/d915330bd02cfa5c81ba993c185c6cc320180327-11-1cosnns.bin'
[0a025e5f-02b5-479e-89f0-bdf3f7436678] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.1ms)
[0a025e5f-02b5-479e-89f0-bdf3f7436678] method=POST path=/api/v1/media format=*/* controller=Api::V1::MediaController action=create status=422 duration=78.62 view=6.97 db=1.92

I've confirmed I can upload images via the web interface.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants