Is it possible to edit the filename of an uploaded document from with the Journey app (without having to use cloudcode)?
@martin You can do this by creating a new Attachment
with your own filename
in your View JS|TS. Something like this.
function createFileAndFilename() {
if (view.uploadedFile) {
var data = view.uploadedFile.toBase64();
var filename = "Some filename.png" // "Some filename.pdf"
var newAttachment = Attachment.create({filename: filename, base64: data});
var object = DB.model_name.first();
object.attachment_field = newAttachment;
object.save();
}
}