"Supported file types are GIF, JPG, PNG, SWF and WebM" when uploading WebM
#25
Closed
opened 7 years ago by tslocum
·
14 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
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.
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.
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:
@ferngarc Sure, I've meant to add such a feature for some time. I've committed the necessary changes.
Created by: Soleedus
I've tried a lot of WebMs, it's not file-specific.
Could you please paste the TINYIB_WEBM line from your settings.php?
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:
Below this line add
echo $file_mime_output;
, the output might give a clue.Created by: Soleedus
Did that and, interestingly, nothing is echoed when attempting to upload a webm.
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 thefile
binary.Any luck @Soleedus?
Created by: Soleedus
Hey, here's the echo:
file --mime-type src/1475288262050.webm
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.
Try running that command as PHP's user from the directory containing imgboard.php, does it return a MIME type?
Created by: Soleedus
Yeah, there's definitely something up with my permissions. Not something wrong with your software.