Peertube: unable to upload subtitles: "This caption file is not supported or too large"

Created on 5 Aug 2018  Â·  8Comments  Â·  Source: Chocobozzz/PeerTube

The website does not allow me to upload subtitles with an error message "file is not supported or too large".

  • Example: test.zip
  • Peertube version or URL: peertube.social
  • Browser name/version: Google chrome canary Version 70.0.3508.0 (Official Build) canary (64-bit)
  • Browser name/version: Firefox developer edition Version 62.0b8 (64-bit)
  • What is expected behavior: the subtitles should be approved.
  • What do you see instead: an error:
Error
This caption file is not supported or too large. Please, make sure it is of the following type : .vtt, .srt

Console log in chrome: pastebin

Type

All 8 comments

I've already seen this kind of error report on IRC.

@theoden8 Please, copy the parameters of the PUT request on the captions/:id endpoint (network tab in the browser console). Example:

-----------------------------30940570513630115141903378002
Content-Disposition: form-data; name="captionfile"; filename="subtitle.vtt"
Content-Type: text/vtt

WEBVTT FILE

1
00:00:00.000 --> 00:00:10.000
<font size="20">subtitle</font>


-----------------------------30940570513630115141903378002--

@Chocobozzz this is the request data:

------WebKitFormBoundaryEGtv8p64EsaY25iA
Content-Disposition: form-data; name="captionfile"; filename="subtitle.vtt"
Content-Type: application/octet-stream


------WebKitFormBoundaryEGtv8p64EsaY25iA--

@theoden8 What is your OS?

@Chocobozzz Mac OS 10.12.6

I just encountered the same issue on PeerTube 1.4.1

OS Ubuntu 18.04, browser Firefox 69.0.1

Parameters of the PUT request:

-----------------------------43127946614799078531291567768
Content-Disposition: form-data; name="captionfile"; filename="English-1.srt"
Content-Type: text/plain

1
00:00:53,840 --> 00:00:56,910
Subtitle

-----------------------------43127946614799078531291567768--
Was this page helpful?
0 / 5 - 0 ratings

Related issues

filmaidykai picture filmaidykai  Â·  3Comments

MikaXII picture MikaXII  Â·  3Comments

gegeweb picture gegeweb  Â·  3Comments

Jorropo picture Jorropo  Â·  3Comments

JohnXLivingston picture JohnXLivingston  Â·  3Comments