Skip to content
Snippets Groups Projects
Commit 5263fb71 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

upload_file() will now fall-back to blind/batch upload if no filename provided

If the user doesn't type a filename (just hits enter) and there are either
files in the batch upload queue and/or there's an 'Uploads' directory
configured by the sysop, then prompt if they want to start a batch
upload now and do that (using the new bbs.batch_upload() method).

This change requires the latest SBBS v3.20a changes committed in this same
push.

Change made to accomodate users/sysops like Chris Mifsud from Facebook:
"For decades using other bbs software I always just pressed enter without
entering a file name and it goes straight to the zmodem upload and then I
select the file and hit upload no problem."

Since only the default ("Synchronet Classic") command shell currently uses
this library, this change only works when using that command shell. When we
port other shells from Baja to JS (and this lib), they'll get this feature
automatically.
parent 095368c0
No related branches found
No related tags found
No related merge requests found
Pipeline #6784 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment