• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] ffmpeg and cron job

Started by aryan2029,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Marius P.

Ok, I seem to have a solution:

lib/maxupload.js line 279 change:

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


to

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



Then, in



lib/upload-ffmpeg.php


replace line 104 from


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

to


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



line 144 changed from:


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



to


$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)
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

max18121980

Super in IE and Chrome.

Mozila - no((
  •  

Marius P.

Quote from: max18121980 on
Super in IE and Chrome.

Mozila - no((

Sure is not just browser cache problem?
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

max18121980

  •  

Similar topics (7)