no upscaling, uploadUrl has to be https

This commit is contained in:
j 2012-03-17 02:06:49 +01:00
parent d3a2f42a64
commit 84e6cfdec3
2 changed files with 4 additions and 1 deletions

View file

@ -43,6 +43,9 @@ pandora.ui.upload = function(oshash, file) {
maxRetry = response.maxRetry;
}
chunkUrl = response.uploadUrl;
if (document.location.protocol == 'https:') {
chunkUrl = chunkUrl.replace(/http:\/\//, 'https://');
}
if (chunkUrl) {
that.status = 'uploading';
that.progress = 0.0;

View file

@ -281,7 +281,7 @@ pandora.ui.uploadDialog = function(data) {
options.noUpscaling = true;
if((!info.video.length || (info.video[0].codec == options.videoCodec
&& info.video[0].height == options.height))
&& info.video[0].height <= options.height))
&& (!info.audio.length || info.audio[0].codec == options.audioCodec)) {
options = {
passthrough: true