# 2024.11.12 - [mad] Fix uploads.txt status marking (urls / messages) containg '&' chars
# 2024.11.12 - [up_torup] Max upload filesize changed to 150MB
This commit is contained in:
parent
03bc4c2c87
commit
3049b3e305
4 changed files with 36 additions and 35 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#! Version: 2024.11.09
|
||||
#! Desc: Add support for uploading files to ktgzpea2b76u7fgemiibp4a76onyybo4fw5gbsagtm6jrjzmgivppyyd.onion
|
||||
#! Info: Files are accessible at http://ktgzpea2b76u7fgemiibp4a76onyybo4fw5gbsagtm6jrjzmgivppyyd.onion/download/<file_code>
|
||||
#! MaxSize: 1GB
|
||||
#! MaxSize: 150MB
|
||||
#! Expire: 30d inactive expiry
|
||||
#! Usage: Copy this file into the ./${ScriptDir}/hosts/ folder
|
||||
#!
|
||||
|
|
@ -44,7 +44,7 @@ torp_UploadFile() {
|
|||
fileAlreadyDone=false
|
||||
tor_identity="${RANDOM}"
|
||||
UploadTicket="${WorkDir}/.flocks/upload_${_hostCode}_${filepath//[^a-zA-Z0-9]/}"
|
||||
MaxUploadSizeInBytes=1073741824
|
||||
MaxUploadSizeInBytes=157286400
|
||||
fsize=$(GetFileSize "$filepath" "false")
|
||||
if ((fsize > MaxUploadSizeInBytes)); then
|
||||
m -f "${UploadTicket}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue