Related Topics


[Video CMS v4]ffmpeg and cron job  (Read 2742 times) Print

1 2  All B


@Mario  January 10, 2015, 12:12:09 AM

Ok, I seem to have a solution:

lib/maxupload.js line 279 change:

Code
this.xhr.setRequestHeader("X-File-Name",file.name);

to

Code
this.xhr.setRequestHeader("X-File-Name", encodeURIComponent(file.name));


Then, in



lib/upload-ffmpeg.php


replace line 104 from


Code
$fileName = $headers['X-File-Name'];
to


Code
$fileName = urldecode($headers['X-File-Name']);


line 144 changed from:


Code
$fileName= $_FILES['file']['name'];


to


Code
$fileName = urldecode($_FILES['file']['name']);


Tested and working with ั‚ะตัั‚.avi 2


You can aplly the same changes to :


lib/upload.php (if ffmpeg is off it uses this uploader) and also:
lib/upload-mp3.php (for music uploads)

Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!


max18121980  January 10, 2015, 12:34:19 AM

Super in IE and Chrome.

Mozila - no((

Logged


@Mario  January 10, 2015, 12:49:54 AM

Super in IE and Chrome.

Mozila - no((

Sure is not just browser cache problem?

Logged
Hello!
If you wish to learn how to start coding on the PHPVibe Video CMS head to the blog.

Please use the search before opening a new topic!


max18121980  January 10, 2015, 12:52:42 AM

BRILLIANT (it was evil cache) ;D

Logged