As far as I can tell- and correct me if I am wrong- any time you upload a file via the .startUpload() promise, it goes directly to “Visitor Uploads”.
However, there should be the capability to specify a directory where the file is actually uploaded.
Visitor Uploads can be the default argument, but you should be able to put an argument in to specify a different folder… and while you’re at it, provide the ability to rename the file.
$w("#uploadButton1").startUpload("Sites Files/State/County/City/FirstName_LastName.txt")
Currently, whatever a user uploads goes into “Visitor Uploads”, and you can’t change the file name before it goes there… You’re supposed to be able to change the name of the file prior to the upload step, but I think that feature is broken ( see post uploadButton's Documentation/SDK Error - Ask the community - Wix Studio Community forum )
If this capability/feature does in fact work, please let me know about that so I can begin using it.
Thanks,
Chris