Is there anything we are missing here or not understanding about the way the http requests work for Lucee. We would like to avoid using FileReadBinary(). Any help is much appreciated.
Try using the <cfhttp> or tags in script version, http url="dffddf" { httparam name="...}, new http() is only a wrapper around for and was deprecated a long time ago by adobe (so I just learnt recently)
but, new Http() is purely just passing thru args to the tags as argumentCollection
httpparam type=file should be working, now either there’s a bug with argumentCollection etc or there is something else in play here.
without seeing the code in question, it’s hard to say
regardless of deprecation status, if there’s a bug and someone wants jump in and fix any of these tags, we are open to PRs, people are still using this and our one of our goals is nice DX (developer experience) for all our users
this includes, new Query(), new Mail() and new Http()
@Gavin_Baumanis encountered a similar problem with new Query() the other day
This is the whole section of code which is the PUT request. There’s nothing fancy here. This is not throwing error. However the file is not uploading properly for .docx, or .msg files.