Contributions
Re: Put Object to AWS S3 using multipart/form-data
Thanks for the reply. In the screenshot above, one can seethe raw multipart request from Soapui that has inserted a header for the attachment. I then downloaded the uploaded file from AWS S3 and a file "diff" with the original image shows the header has been included in the file content. So I gather AWS does not expect this multipartheader. It counts everything after the message headeras payload.2.5KViews0likes2CommentsRe: using AWS presigned URL in HTTP requests
I figured out thatthe problem was happening as the property name was being forced to lower case letters, so the property was not found. I solved this by opening the same project in SoapUI 5.0.0 and inserting the property name there. v5.0.0 does not change the property name to lower case, I can now open the project back in 5.2.1, and the property name is ok here.1.3KViews2likes1CommentPut Object to AWS S3 using multipart/form-data
I am trying to upload an image file to AWS S3 using HTTP PUT in a REST project. I have tried the following: (1) Use a multipart attachment did not work because SoapUI insertedattachment headers which AWSinserted as part of the file. I read there was an option to disable multiparts, but could not find it. (2) I used the followingGroovy script to read theimage into a single-byte stringinserted the result of teh script into the payload of the request. This alsmost worked. But theiso-8859-1 encoding changed some bytes and corrupted the image. import org.apache.commons.io.FileUtils; def filename = "path/to/file/name"; File file = new File(filename); def str = new String(file.readBytes()); return str; Please help.2.5KViews0likes4Commentsusing AWS presigned URL in HTTP requests
I geta presigned URL for AWS "putObject" from the server, which I use to upload files to S3. How can I use the URL I get from the sever in a HTTP request test case to automate uploading the file.I tried to save the URL in a property and used the propertyas the endpoint in the HTTP request, but an error does not accept the property and says "Missing endpoint forrequest".The only way the HTTP request uploads the fileis if I paste the URL endpoint as string and I extract all the QUERY parameters.How can I parse the URL, extract the parameters and make the HTTP request. Thanks.1.3KViews0likes2Comments