0

I've got the plug in working unless I change the window.location url as suggested in the commented code - and as I would prefer to do.

Changing either one or both blueimp.github.com or blueimp.github.io to the desired domain lets the progress bar run and suggests success, but nothing ever uploads.

I'm changing them to a valid url of the site and server that's running it using blueimp, yet it fails.

Starting with this:

// Change this to the location of your server-side upload handler:
    var url = (window.location.hostname === 'blueimp.github.com' ||
                window.location.hostname === 'blueimp.github.io') ?
                '//jquery-file-upload.appspot.com/' : 'server/php/';

and changing to this:

// Change this to the location of your server-side upload handler:
    var url = (window.location.hostname === 'otherdomain.com' ||
                window.location.hostname === 'otherdomain.com') ?
                '//jquery-file-upload.appspot.com/' : 'server/php/';

What am I doing wrong here?

Thanks in advance for any help.

4

3 回答 3

0

根据您的情况(以及我的情况)。您需要将 blueimp 服务器更改为您自己的 url。从给出的代码。您需要将otherdomain.com替换为您的域名。并将server/php更改为UploadHandler.php所在的位置。但保持//jquery-file-upload.appspot.com/不变。

于 2014-02-05T15:01:06.263 回答
0

main.js 中的变化:

网址:'you_server'

于 2013-07-11T19:00:38.733 回答
-1

将此更改为服务器端上传处理程序的位置以解决问题:

var url = (window.location.hostname === 'yourdomain' ||
    window.location.hostname === 'blueimp.github.io') ?
    '//yourpages.php/' : 'folderinsidethesever';`
于 2018-09-28T06:06:23.300 回答