Commit Graph

53 Commits

Author SHA1 Message Date
shortcutme 6776dabdb3
Fix piecemap downlad error when invalid piecemap got downloaded 2020-06-30 17:02:39 +02:00
Andrew Morgan a657afcd47 Add missing seekable() class method to BigFile plugin 2020-05-01 18:24:47 +01:00
Ivanq 17f65a5179 Avoid code duplication 2020-02-24 19:19:35 +03:00
Ivanq f8e2cbe429
Allow uploading files via websocket (#2437)
* Allow uploading files via websocket

* Fix
2020-02-24 13:46:01 +01:00
shortcutme 3e08eabc86
Proper error when piecemap download fails 2020-01-22 16:31:35 +01:00
shortcutme 224093b3dd
Rev4397, Fix big file invalid path errors 2020-01-09 16:35:05 +01:00
shortcutme 2a402a0674
Use thread-safe mode to create directories 2019-12-17 14:18:54 +01:00
Krzysztof Otręba baa5df1d01 fixed KeyError: 'piece_size' when try to download non-optional file using '|all' 2019-08-30 18:59:19 +02:00
shortcutme d166a16a24
Use function flagging in plugins 2019-08-26 03:20:07 +02:00
ZeroNet eae0d1b2a6
Merge pull request #1959 from tangdou1/patch-1
Change default value to 10MB
2019-07-01 17:45:37 +02:00
shortcutme 350ee13d66
Fix serving binary files with zero characters in it. 2019-06-04 16:18:52 +02:00
radfish ec6fd48b86 Bigfile: fix piece field bitmask to be used as bytearray consistently (#1982)
* Bigfile: make Piecefield array a bytearray

We want an array of characters. Py2 strings made sense to
use as an array of characters, but Py3 strings are different
and no longer a good choice.

* Bigfile: store bits as binary instead of char

* BigFile: rename to/from string -> to/from bytes

Since the type was changed to bytearray.
2019-04-16 15:14:19 +02:00
shortcutme b82f57e7a2
Fix small file upload using bigfile plugin 2019-04-15 15:07:31 +02:00
shortcutme 998ec3eb4f
Disable all site serving using a global offline argument 2019-04-15 15:06:25 +02:00
shortcutme 87abdb92e9
Fix bigfile upload 2019-04-08 18:11:46 +02:00
tangdou1 4c358b9f08
Big File is bigger than 10MB
Big File is an optional file which is bigger than 10MB, so the default value should be at least 10MB.
2019-04-06 11:57:58 +08:00
shortcutme e24d1016a5
Fix bigfile upload post request return value 2019-03-23 03:38:04 +01:00
shortcutme a82ee338ef
Rev4017, Fix Bigfile test, Python 3.4 compatibility 2019-03-21 02:48:21 +01:00
shortcutme 60405bf222
Rev4016, Add ad test Python 3.4 compatibility 2019-03-21 02:22:22 +01:00
shortcutme b46ee0c495
Use Msgpack module in Bigfile plugin 2019-03-16 02:14:08 +01:00
shortcutme 28ffb3fd18
Ignore sha3 warning of merkletools module 2019-03-16 02:13:17 +01:00
shortcutme b0b9a4d33c
Change to Python3 coding style 2019-03-15 21:06:59 +01:00
shortcutme 56221ebc95
Support limiting maximum bigfile size 2018-10-30 04:38:18 +01:00
shortcutme 0deea7133d
Stop downloading bigfile piece if file removed 2018-10-15 13:03:36 +02:00
shortcutme 5854beebc6
Fix Bigfile tell 2018-08-16 16:20:21 +02:00
shortcutme 879eb6295d
BigFile lock seek and read until previous request finished, fix seek relative to bigfile end 2018-08-16 16:20:11 +02:00
rllola 8e1c0a7fa4 Fix rev 3535 big javascript file 2018-07-16 17:32:18 +02:00
shortcutme dae1197ce4
Pass the real file size on bigfile request as the size on the disk can be smaller 2018-07-16 01:34:48 +02:00
shortcutme 1296ab9b60
Only pre-allocate up to 5MB from big files 2018-07-16 01:34:21 +02:00
shortcutme abc481604f
Rev3404, Fix bigfile upload 2018-04-04 12:39:46 +02:00
shortcutme c703458e00
Rev3403, Fix uploading small files with bigfile plugin 2018-04-04 10:24:38 +02:00
shortcutme b8d83c7ec4
Mark site with has_bigfile if new bigfile found 2018-03-29 03:16:47 +02:00
shortcutme 5c644d1b36
Make Bigfile plugin compatible with optionalDownloaded changes 2018-03-29 03:15:49 +02:00
shortcutme 9d3913ed70
Also delete piecemap on bigfile deletion 2018-03-20 21:58:51 +01:00
shortcutme 0533f29e7a
Only recover file piecefield if we already hashed it 2018-03-19 02:57:54 +01:00
shortcutme 1189c76691
Add existing bigfiles to piecefield if they were downloaded outside of ZeroNet 2018-03-14 22:21:45 +01:00
shortcutme bbb54d6a6a
Support per site max autodownload bigfile size limit changing via API 2018-03-10 02:00:51 +01:00
shortcutme 96e9cc9c32
Correct cli settings help 2018-03-10 02:00:12 +01:00
shortcutme b1f16857fc
Support per-site auto download bigfile size limit 2018-03-10 01:59:55 +01:00
shortcutme b0a8c4d278
Change http headers from list to dict 2018-03-06 11:58:56 +01:00
shortcutme 39366bfbf1
Rev3323, Fix bigfile download to non-existent directory 2018-02-11 01:48:17 +01:00
shortcutme 3fb9f900f6
Rev3225, Handle correctly and test out of range bigfile requests 2018-01-21 18:56:30 +01:00
FARHZ 22bb77e7a0
Fix logic BigfilePlugin.py 2017-11-19 10:43:30 -02:00
shortcutme bc1d79a07d
Fix pice_size typo 2017-11-05 23:34:31 +01:00
shortcutme 99e5af67b7
Make BigfileUploadInit merger sites compatible 2017-10-26 10:43:45 +02:00
shortcutme 9b83c683b5
Reload content.json info after bigfile upload 2017-10-26 10:35:46 +02:00
shortcutme c40f0c6919
Fix uploading bigfile to non-user directory 2017-10-16 15:11:19 +02:00
shortcutme 807dc866e5
Rev3106, Cancel other part downloads when delete optional file 2017-10-16 01:43:51 +02:00
shortcutme a66b71fb9c
Rev3104, Fix bigfile signing via command line 2017-10-13 11:27:45 +02:00
shortcutme b322b750c2
Don't load empty piecefields from sites.json 2017-10-13 01:15:21 +02:00