There is always a way out

Home network slow, especially upload, the company's network fast. So I have got large files to be uploaded to the company's network disk Baidu.

But the problem is a little bit to come.

Chrome started uploading, no problem. Taipingwushi N days.

Suddenly die, upload about 30 M does not move, then fail.

Ie 8 to switch to upload, and it. Taipingwushi N days.

Suddenly ie company to update to 10, and die.

Installing VirtualBox, then put on a belt ie 8 in windows virtual machine, or not. Modification ie 9, 10.10 and the line. Taipingwushi N days.

This continued for some time, suddenly die.

Try to limit the bandwidth, vboxmanage bandwidthctl win7 set Limit --limit 1M, 7000k, 5000k ,. . . Or not.

Looking for an open source Baidupcs-go, command line, looking for a party GUI, the virtual machine to get up, the browser displays a blank. Installed on a physical machine, you can log in, but uploading does not work.

Switch to the command line, you can not log in on the physical machine.

Baidupcs-go with the command line, you can log in the virtual machine, upload, first upload using the default slice, spread half of the 400 Bad request.

Disabling fragmentation upload, and finally the line.

So, Heaven must be a way.

The only flaw is the command-line program has a bug, files larger than 2G can not disable part uploading. Read the source code, although do not understand the language of Go, but after all, what python and similar large ones, in conjunction with the positioning statement is wrong stack, it is estimated that one left : = int (. Fb Left ()) have a problem, should be changed to left : = Int64 (FB. Left ()). But to change, Go language is not a script, to be compiled. Aspect have information about the tune.

 

ps also found several files, regardless piece upload quickly, but there are several files is very slow. Moreover, 100% with great difficulty, and start again from scratch, and fainting. But several attempts to patch file upload, saw "forward and backwards", while display uploaded 100M, while they retreated to 90M, in another moment, display so that the last 120M ...... finally uploaded a success!

 

Guess you like

Origin www.cnblogs.com/badnumber/p/11696174.html