6.4.2 File Upload Using File Upload Utility
To upload files using the File Upload utility, follow these steps:
- Extract the FILEUPLOAD_UTIL.zip file under the $HOME directory.
- Place the Data Loader input file in the
$HOME/FILEUPLOAD_UTIL directory.
Figure 5-1 Data Loader Input File Path
- Edit the Env_setup.sh file to update the ENV
variables. For more information to get the IDCS URL, see
IDCS_URL=<idcs-url>/oauth2/v1/token
Example: https://idcs-0cb0c2b3ba624afca67467fd5eb9db49.identity.xxyy.xxyyy.com/oauth2/v1/token
ENCODED=<OAuth Client ID>:<OAuth Client Secret> (Encode them using base64encode)
See Get the OAuth Client ID and Client Secret for getting the URL. for the Client ID and Client Secret details.
Example:
ZnRwcWExMDEyMzEtcHJkX0FQUElEOjBkMmU5MDBiLTlhYjItNGFmOS05OWM0LTEwNTYyMDVkYWYwNQ==
USERNAME=<App login user>
Note:
<App login user> should have FILE_UPLOAD role mapped.PASSWORD=<App login password>
TENANT=<abcdef-prd>
CCAHOST=<CCAhostdetail>
Example : dc.ccacloud.us-xxxxx -1.ocs.oc-test.com
Figure 5-2 OFS CCA CS Host Details
- The input1.csv file is the input file that stores the file name,
size, and type. To run the multiple files for upload, you must have multiple entries
of the details of the file that need to be included.
Note:
While running this in windows,the size field must be numeric as displayed in the following image:Figure 5-3 Example
- Run ./wrapper.sh.
Figure 5-4 Running ./wrapper.sh
Figure 5-5 PAR URL Generation is Successful
- The script generates the parresponse for each input file and
summary.txt.
Figure 5-6 The Generated summary.txt File
Figure 5-7 The Generated Response File
The following image displays the contents of the generated summary file:Figure 5-8 The Generated Summary File
- After the execution is completed, check the File Upload/Download UI to confirm that
the uploaded file is appearing.
Figure 5-9 File Upload/Download UI