This is a very simple question to answer. There is someone working at Wix who worked on the AWS SDK and I am assuming that they attempted to store something in AWS S3. My question is how did they store a file in an S3 Bucket? Is there any way that my question can be posed to this Wix employee so that I can finish the last remaining part of my Web site? There are only 3 possible answers to my question and they are these: No, we can’t talk to our software developers because it is against the rules or we don’t know who they are, or some other lame excuse. Yes, we talked to the developer and they said that they have no Idea how to store a file in AWS S3 (another very lame excuse). And the third is an explanation of how they accomplished this feat. To provide an SDK to your users that is unusable is not only an injustice but it is bad business practice, false advertising or whatever else you want to calI it. Can someone from Wix please respond to me or tell me how to get the information that I need?
I need to store a file for long term use in AWS S3. In order to do this I need to invoke either of the two functions in Wix’s AWS SDK named s3.putObject or s3.upload (where s3=
new AWS.Config()). Both of these functions, as well as the wixmedia.upload function, require a buffer with the contents of the file rather than a filename from where the data itself can be extracted. I don’t see any functions in wix to get the contents of a file either before or after the file is uploaded into wix. There is a function defined in the official AWS SDK called upload_file (which is exactly what I need) but this function is not replicated in the Wix version of the AWS SDK. If it is not possible to store a file using the file name and it is not possible to get the contents of a file into a buffer then how can a file be stored into an AWS S3 Bucket. It seems like the entire AWS SDK is useless if you cant store a file in a bucket, so why has Wix provided this SDK if it can’t be used? Or am I just not seeing a function that can be used to solve my problem?