"Supported file types are GIF, JPG, PNG, SWF and WebM" when uploading WebM #25

Closed
opened 7 years ago by tslocum · 14 comments
tslocum commented 7 years ago (Migrated from gitlab.com)

Created by: Soleedus

WebM support is set to "true" in settings.php, and both mediainfo and ffmpegthumbnailer are installed/functional. TinyIB rejects WebM posts for some reason, and provides the above error message.

*Created by: Soleedus* WebM support is set to "true" in settings.php, and both mediainfo and ffmpegthumbnailer are installed/functional. TinyIB rejects WebM posts for some reason, and provides the above error message.
tslocum commented 7 years ago (Migrated from gitlab.com)

Could you please upload the WebM file you tested? This error is displayed when the MIME type was unmatched, meaning the file isn't being read as video/webm or audio/webm.

Could you please upload the WebM file you tested? This error is displayed when the MIME type was unmatched, meaning the file isn't being read as video/webm or audio/webm.
odnanref commented 7 years ago (Migrated from gitlab.com)

Any chance in the future to add the feature of clicking an image to enlarge
it, instead of it directing you to a direct image page?

On Wed, Sep 21, 2016 at 12:21 PM, Trevor Slocum notifications@github.com
wrote:

Could you please upload the WebM file you tested? This error is displayed
when the MIME type was unmatched, meaning the file isn't being read as
video/webm or audio/webm.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tslocum/TinyIB/issues/25#issuecomment-248715206, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AMx_fRKSlDpkfD3m59p4TNxy2SJT82kCks5qsYO1gaJpZM4KDK9k
.

Any chance in the future to add the feature of clicking an image to enlarge it, instead of it directing you to a direct image page? On Wed, Sep 21, 2016 at 12:21 PM, Trevor Slocum notifications@github.com wrote: > Could you please upload the WebM file you tested? This error is displayed > when the MIME type was unmatched, meaning the file isn't being read as > video/webm or audio/webm. > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > https://github.com/tslocum/TinyIB/issues/25#issuecomment-248715206, or mute > the thread > https://github.com/notifications/unsubscribe-auth/AMx_fRKSlDpkfD3m59p4TNxy2SJT82kCks5qsYO1gaJpZM4KDK9k > .
tslocum commented 7 years ago (Migrated from gitlab.com)

@ferngarc Sure, I've meant to add such a feature for some time. I've committed the necessary changes.

@ferngarc Sure, I've meant to add such a feature for some time. I've committed the necessary changes.
tslocum commented 7 years ago (Migrated from gitlab.com)

Created by: Soleedus

I've tried a lot of WebMs, it's not file-specific.

*Created by: Soleedus* I've tried a lot of WebMs, it's not file-specific.
tslocum commented 7 years ago (Migrated from gitlab.com)

Could you please paste the TINYIB_WEBM line from your settings.php?

Could you please paste the TINYIB_WEBM line from your settings.php?
tslocum commented 7 years ago (Migrated from gitlab.com)

Created by: Soleedus

define('TINYIB_WEBM', true);

It says WebM is an accepted filetype -- when I go to post with a WebM,
however, it rejects the post on the basis on an invalid filetype.

On Thu, Sep 22, 2016 at 2:18 AM, Trevor Slocum notifications@github.com
wrote:

Could you please paste the TINYIB_WEBM line from your settings.php?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tslocum/TinyIB/issues/25#issuecomment-248821693, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABSe1T_nkn7rci4hhkcaCE4maCbhllXCks5qsh3GgaJpZM4KDK9k
.

*Created by: Soleedus* define('TINYIB_WEBM', true); It says WebM is an accepted filetype -- when I go to post with a WebM, however, it rejects the post on the basis on an invalid filetype. On Thu, Sep 22, 2016 at 2:18 AM, Trevor Slocum notifications@github.com wrote: > Could you please paste the TINYIB_WEBM line from your settings.php? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > https://github.com/tslocum/TinyIB/issues/25#issuecomment-248821693, or mute > the thread > https://github.com/notifications/unsubscribe-auth/ABSe1T_nkn7rci4hhkcaCE4maCbhllXCks5qsh3GgaJpZM4KDK9k > .
tslocum commented 7 years ago (Migrated from gitlab.com)

Below this line add echo $file_mime_output;, the output might give a clue.

Below [this line](https://github.com/tslocum/TinyIB/blob/eedef06bbfc965581e4891078272b9cf12c481cc/imgboard.php#L192) add `echo $file_mime_output;`, the output might give a clue.
tslocum commented 7 years ago (Migrated from gitlab.com)

Created by: Soleedus

Did that and, interestingly, nothing is echoed when attempting to upload a webm.

*Created by: Soleedus* Did that and, interestingly, nothing is echoed when attempting to upload a webm.
tslocum commented 7 years ago (Migrated from gitlab.com)

Change the line you added to echo 'file --mime-type ' . $file_location;die(); Then try running that command as the user which runs PHP (usually www-data in my experience) from the directory containing imgboard.php, it seems like your PHP user might not be able/allowed to reach the file binary.

Change the line you added to `echo 'file --mime-type ' . $file_location;die();` Then try running that command as the user which runs PHP (usually www-data in my experience) from the directory containing imgboard.php, it seems like your PHP user might not be able/allowed to reach the `file` binary.
tslocum commented 7 years ago (Migrated from gitlab.com)

Any luck @Soleedus?

Any luck @Soleedus?
tslocum commented 7 years ago (Migrated from gitlab.com)

Created by: Soleedus

Hey, here's the echo:
file --mime-type src/1475288262050.webm

*Created by: Soleedus* Hey, here's the echo: `file --mime-type src/1475288262050.webm`
tslocum commented 7 years ago (Migrated from gitlab.com)

Created by: Soleedus

The webm is being uploaded to the /src/ directory, but it doesn't appear in the board index, or anywhere else for that matter.

*Created by: Soleedus* The webm is being uploaded to the /src/ directory, but it doesn't appear in the board index, or anywhere else for that matter.
tslocum commented 7 years ago (Migrated from gitlab.com)

Try running that command as PHP's user from the directory containing imgboard.php, does it return a MIME type?

Try running that command as PHP's user from the directory containing imgboard.php, does it return a MIME type?
tslocum commented 7 years ago (Migrated from gitlab.com)

Created by: Soleedus

Yeah, there's definitely something up with my permissions. Not something wrong with your software.

*Created by: Soleedus* Yeah, there's definitely something up with my permissions. Not something wrong with your software.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tslocum/tinyib#25
Loading…
There is no content yet.