G4GUPLOAD

The G4GUPLOAD command is used to upload a file from your IBM i (AS/400, iSeries, etc) Integrated File System (IFS) to your Google Drive.

                      Upload File to Google Drive (G4GUPLOAD)   
             
 Type choices, press Enter.
 Google ID  . . . . . . . . . . .   ___________________________________________
 File to upload . . . . . . . . .   ___________________________________________
 File name  . . . . . . . . . . .   *DFT
 File content type  . . . . . . .   *DFT
 Upload to folder . . . . . . . .   *ROOT
 Replace file . . . . . . . . . .   *YES
 Convert Mime Type  . . . . . . .   ___________________________________________
 Create parents . . . . . . . . .   *NO           *YES, *NO
 CCSID  . . . . . . . . . . . . .   819           Number
 Debug  . . . . . . . . . . . . .   *NO           *YES, *NO
 Debug File . . . . . . . . . . .
                                                                         Bottom
 F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display   
 F24=More keys                                                                 
  • Google ID - Enter the Google ID associated with the drive you wish to upload to.
  • File to upload - Specify the fully qualified path to the file on the IFS that you wish to upload.
  • File name - Enter the resulting filename you would like to use when the file is placed in your Google Drive. The value of *DFT will use the file name (without the path) of the file you are uploading.
  • File content type - Enter the content type of the file you are uploading. The value of *DFT will attempt to look up the content type in the G4GCTTPF file. Please check this file for the file extension and associated content type if you are unsure of what will be used.
  • Upload to folder - Specify the fully qualified path on your Google Drive you wish to place this file. This parameter IS case sensitive. The value of *ROOT will place the file in the root of the Google Drive. You can also specify a folder ID on this parameter.
  • Replace file - Specify *YES to replace the file if it already exists or *NO to add a file with the same name if it already exists.
  • Convert Mime Type (was Convert file) - Specify the Google mime type that you wish this file to be converted to, or *NONE for no conversion. See https://developers.google.com/drive/api/v3/mime-types for a list of valid Google mime types.
  • Create parents - Specify *YES to create the folder path(s) if they do not exist before uploading the file.
  • CCSID - Enter a CCSID for data translation.
  • Debug - Enter *YES to debug this command.
  • Debug File - Enter the fully qualified path and name of the IFS file to store the debug data. If left blank the default of /tmp/g4g_<id>_upload.txt will be used where <id> is the ID associated with the request.