cancel
Showing results for 
Search instead for 
Did you mean: 

How can I make Ready API include the size parameter of a Content-disposition?

SOLVED
Highlighted
Community Leader

Re: How can I make Ready API include the size parameter of a Content-disposition?

@pebraert  :

 

If still it is not solved then you should ask this question to any moderator available here on the community or connect with smartbear support team.

 


Click "Accept as Solution" if my answer has helped, and remember to give "kudos" Smiley Happy

Thanks and Regards,
Himanshu Tayal
Highlighted
Occasional Contributor

Re: How can I make Ready API include the size parameter of a Content-disposition?

Is there a moderator who can do that please?

Highlighted
Community Leader

Re: How can I make Ready API include the size parameter of a Content-disposition?

@sonya_m  : FYI 

 


Click "Accept as Solution" if my answer has helped, and remember to give "kudos" Smiley Happy

Thanks and Regards,
Himanshu Tayal
Highlighted
Community Hero

Re: How can I make Ready API include the size parameter of a Content-disposition?

Ok, could not differentiate which one is what.

Did some reading and here are some inputs

1. for attachments, Content-Lenth is not required header ( i think it is not send in the part2 anyways)

2. if size needs to be added, then you can maipulate the Content-Disposition header using SubmitListener.beforeSubmit event and update it to add the size.

Refer for an idea.

https://stackoverflow.com/questions/5920689/how-to-know-the-file-size-when-uploading-via-multipart-f...

 

other relevant posts related to concept:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition

https://github.com/roundcube/roundcubemail/issues/3810

https://stackoverflow.com/questions/34184568/how-to-get-the-real-file-size-of-a-file-in-a-multipart-...



Regards,
Rao.

View solution in original post

Highlighted
Moderator

Re: How can I make Ready API include the size parameter of a Content-disposition?

Hi @pebraert,

 

You can find scripts to modify the headers before sending, so you can add the size parameter to the Content-disposition header using scripts.

In this article: 

https://smartbear-cc.force.com/portal/KbArticleViewer?name=Troubleshooting-issues-with-adding-attach...

you can find examples for modifying headers.



 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!
Highlighted
Community Manager

Re: How can I make Ready API include the size parameter of a Content-disposition?

Thank you for help everybody!

Hi @pebraert , was the issue solved for you?


Sonya Mihaljova
Community and Education Specialist

 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!