[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ftpapi] Rif: Re: In: Re: In: HTTPAPI - Example 7 - Upload a file from IFS - No file attached!
Hi Scott,
sorry if I reply
to you privately, but I have to tell you that I can give you a token, but
it is valid only for 1 hours, if I remember correctly, or 3 hours at most.
So you have to
do test it immediately...
However I try
to add the http_errors() after calling http_mfd_encoder_addstmf() in this
way.
Is it correct?
http_mfd_encoder_addstmf(
enc
: 'Certificate'
: $file_path
: 'application/pdf');
msg
= http_error();
And the msg variable
is empty. I don't know if it is sign of error or not.
Debug is *ON.
I receive the
201 return code.
In the result
file I receive correctly the response of the ID of the document sent.
But the document
in the document library thre isn't.
_________________________________________________________
Sara Bellucci
SAS INFORMATICA srl
Tel: +39 075 5058160
Fax: +39 075 5058105
e-mail: SaraBellucci@xxxxxxxxxxxxxxxxx
http://www.sasinformatica.it
Da:
"Scott
Klement" <sk@xxxxxxxxxxxxxxxx>
Per:
ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Data:
25/06/2021
07:19
Oggetto:
Re:
[Ftpapi] In: Re: In: HTTPAPI - Example 7 - Upload a file from IFS - No
file attached!
Inviato
da: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
Hello Sara,
I'm only able to look at your code with
my eyes, I am unable to load it, run it, or debug it since I don't have
your bearer token or PDF file.
Looking at it, it seems okay?
I notice that you are not checking for
errors when calling http_mfd_encoder_addstmf(). Is it possible that
this is reporting an error, and this is going unnoticed?
Have you created a debug/trace file and
looked inside of that?
--
Scott Klement
sk@xxxxxxxxxxxxxxxx
On 6/24/2021 2:07 AM, SaraBellucci@xxxxxxxxxxxxxxxxx
wrote:
In this case I don't receive the error "No file attached!", but
there is something strange.
In the document list of the IBM food trust library, I find the document
as a title, but when I try to view the detail and open the PDF file, I
don't find the document.
It seems the same result... that the file was not attached in fact.
Can you help me, please?
--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi
--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi