Pushing docs with API

Hi All,

I need to push file using API.
the file format is PDF, I am getting error
“Error: File could not be found within the upload directory”

Could you suggest here ?

Hi,

Could you be more specific ? Are you trying to read some file using file reader snap and send it somewhere via REST call ?
Which snap is causing a problem ?

Regards,
Petar

You might need to upload the file in sldb if its not there, please note the file size should not be more than 100 MB as that wont get uploaded to sldb. once the file is uploaded you can use REST POST Snap.

Regards
Anubhav

Hi Petar,

yes, i am reading it through file reader snap and send it to server using rest post snap.

I am getting the error, “Error: File could not be found within the upload directory”

Since your file is greater than 100mb you could write it to the GPLEX itself as a file:\ format. We also have implemented Gluster as an attached storage option. The nice thing with it is gluster is attached to all GPLEX in the org so if your pipelines are executing on multiple GPLEX they can all see the files.

Not sure if this is available on Snaplogic hosted GPLEX but for sure with the on premises ones

the file is already present in sldb server.

the file is already present in sldb

Hi Petar,

yes, i am reading it through file reader snap and send it to server using rest post snap.

I am getting the error, “Error: File could not be found within the upload directory”

can you share the pipeline or screenshot if the the configuration of the snaps in your pipeline,


can you try selecting the file in single upload file property and try it.

its giving the same error