IncludeOnline=true option doesn't work when uploading attachment to Xero via API - xero-api

IncludeOnline=true option doesn't work when uploading invoice attachment to Xero via API.
This is the doc:
https://developer.xero.com/documentation/api/accounting/attachments/#post-attachments
And this the option I need to be turned on after I upload the file and it is still turned off even with IncludeOnline=true:
option to be enabled after upload
Tried: Attach file to the invoice with IncludeOnline=true
Expecting: Send with invoice option to be turned on

Related

Attach files larger than 5MB using GMAIL API resumable upload

I am trying to upload an attachment which is greater than 5MB size, hence using resumable upload option of the gmail API using the REST API option.(https://developers.google.com/gmail/api/guides/uploads#resume-upload).
In the API spec it is not clear on what should be the request body of the resumable upload request and the request body of the upload URI.
I have tried all possible ways of adding parameters to the body of the request, but couldn't succeed in attaching the file to the email.
has anyone able to successfully attach files using the resumable upload api,
Also should the attachment file needs to be uploaded as base64 encoded ?
developer guide doesn't provide much information, so unable to get a working solution.
Can anyone provide a snippet of request of the resumable upload request and the request of upload URI ?

Cannot do multipart upload to S3 bucket with SSE-KMS encryption (using .NET SDK)

I can successfully send the InitiateMultipartUploadRequest and get InitiateMultipartUploadResponse back, but then get Access Denied error when sending the 1st UploadPartRequest.
Note that all of the below cases upload the document successfully:
Exactly the same code (i.e. using multipart upload), but to a different bucket that uses SSE-S3 encryption.
Using low-level API and uploading the document in one go, i.e. creating PutObjectRequest and then calling amazonS3Client.PutObjectAsync(putObjectRequest).
Using high-level API TransferUtility class.
Maybe the encryption key was not forwarded in the call properly.

How to Enable Accept.js for Authorize.net in My 3dcart store?

I have to Configure accept.js in Authorize.net Payment Gateway in my 3dcart store. I have Login Id, Transaction Key, And Public key as well. Do I need To just check- uncheck for enabling this accept.js? Or I need to add the code or this script to the checkout page and call javascript file? They give me Learn more link (http://developer.authorize.net/api/reference/features/acceptjs.html). And How to test it when it's configured well?
Same way I have just added Login Id and Transaction key & checked the check box of Enable Customer Information Manager (CIM) and Its working fine. As I tested it.
see screenshot: (https://www.screencast.com/t/etPeqTiBJf)

Differentiating Application Upload and FTP Client uploads

Assume we have an web application where user will be provided an option to upload folder/file
Assume we have created an IAM and configured FTP to access S3 via FTP.
Now the user can upload a folder/file via FTP or web application.
We need to create a event notification or call a rest api whenever a new folder or file has been uploaded.
How to register an event register and call the rest API whenever a new folder or file has been uploaded?
How to differentiate whether the upload or file has been done from web application or FTP server from S3 ?
We need to call a different api when the folder has been created via web application and we need to call a different api when the folder has been created via FTP server
Thanks.
1) You can register to an object created event using lambda function via the properties of the bucket(ObjectCreated(All) event), and then execute a call to your API.
2) You can add a metadata to you file while uploading it saving the source of the upload. For example in your http request add the following header x-amz-meta-filesource. Every header starting with x-amz-meta- will be saved as the file metadata.

FilePicker / FileStack Error: The specified policy does not allow the call remove

I am using Filepicker.io now called FileStack and I am trying to delete a file through the API and am getting this error:
This action has been secured by the developer of this website. Error: The specified policy does not allow the call remove
Has anyone seen this before? I am sending files through FilePicker to Amazon S3 so my questions are:
How can I resolve this?
Is this an issue on Amazon S3 side or FilePicker side?
This is filepicker API error message and it indicate that owner of the file
( filepicker app owner ) is using security mode.
If security is enabled all actions required policy and signature appended.
If you are app owner you can generate proper policy and signature base on your filepicker app secret key.
See more: https://www.filestack.com/docs/security/
https://www.filestack.com/docs/file-ingestion/javascript-api/remove