Skip to content
This repository has been archived by the owner on Jun 8, 2018. It is now read-only.

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

Closed
Soleedus opened this issue Sep 21, 2016 · 14 comments
Closed

Comments

@Soleedus
Copy link

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
Copy link
Owner

tslocum commented Sep 21, 2016

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.

@ferngarc
Copy link

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
#25 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AMx_fRKSlDpkfD3m59p4TNxy2SJT82kCks5qsYO1gaJpZM4KDK9k
.

@tslocum
Copy link
Owner

tslocum commented Sep 22, 2016

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

@Soleedus
Copy link
Author

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

@tslocum
Copy link
Owner

tslocum commented Sep 22, 2016

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

@Soleedus
Copy link
Author

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
#25 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABSe1T_nkn7rci4hhkcaCE4maCbhllXCks5qsh3GgaJpZM4KDK9k
.

@tslocum
Copy link
Owner

tslocum commented Sep 22, 2016

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

@Soleedus
Copy link
Author

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

@tslocum
Copy link
Owner

tslocum commented Sep 22, 2016

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
Copy link
Owner

tslocum commented Sep 30, 2016

Any luck @Soleedus?

@Soleedus
Copy link
Author

Soleedus commented Oct 1, 2016

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

@Soleedus
Copy link
Author

Soleedus commented Oct 1, 2016

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
Copy link
Owner

tslocum commented Oct 1, 2016

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

@Soleedus
Copy link
Author

Soleedus commented Oct 6, 2016

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

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

3 participants