you wrote that the folderID is also given in the stringified JSON array. How can I read out the folderID for my folder name "Testapp"?
Can you please show me a block for that too?
I definitely need this folderID for the TargetID in "UploadFileToFolder", correct?
The targetID is the Id of the folder you wish to upload the file to. You use the folderID for this. Therefore if you want to upload a file to the folder "Testapp", you must get this folders ID and set it as the targetID.
Also, you can debug all of your variables to ensure that they are correct - e.g. do you actually have a base64string, is the filename returning true, is the target folderID in place
This, below, is commented in the google apps script:
//uploadFile(e.parameter.name,e.parameter.data,e.parameter.mime)
//Note: the webviewer can only handle file sizes of @ 1.2mb
//(when in base64String), for larger files,
// temporarily change folder permissions to anyone_with_link,
//step outside the framework and use the web component
//to upload, then back into the framework to reset permissions.
//For root folder you will need to upload to another folder, then move to root.
nothing I can do about this, the webviewer can only handle a url of a certain size.
thanks for the information.
It's a shame that this restriction exists to WebViewer.
Do you have an idea or a link how I can copy larger files?
(//for larger files, temporarily change folder permissions to anyone_with_link,
//step outside the framework and use the web component
//to upload, then back into the framework to reset permissions.)
encode the file to base64String (you can add additional if/else blocks to the encode event, using the setting of the action variable, so that you do not have to drag in another copy of the extension)
POST the file with the required parameters to the script web app
Bear in mind that Google/Google Drive does not always behave in the way we may expect, it may not be happy with uploads of files over 25mb, or too many uploads in a particular time period.
######################
######################
Not sure what you mean by this, you should be able to upload a Pictures.zip file to a folder in the same way.