x


Little help with S3

IS there a way to use Javascript in unity to like Create/Edit a textfile stored on S3?

more ▼

asked Aug 01 '11 at 04:48 PM

Chesley gravatar image

Chesley
161 19 27 36

I notice you've asked more than a dozen questions here, and haven't marked any of the answers you've received as "accepted". Go ahead and do that, and I'll help you out with this.

Aug 01 '11 at 05:03 PM sneftel

ok there all marked as awsered.

Aug 01 '11 at 05:12 PM Chesley

..........

Aug 01 '11 at 05:25 PM Chesley
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You can use Amazon S3's REST-based interface to upload and download objects. Unity doesn't support PUT requests, but it does support GET and POST requests, and those are sufficient for reading and writing. You'll use the WWW class for this, with the three-argument form: The first argument will be the S3 URL, the second will be the file contents encoded as a byte array, and the third will be a hashtable of the form fields. More info on the WWW class is in the Unity script reference, and documentation of the REST API for S3 is here. In particular, note the link about POST-based uploads.

more ▼

answered Aug 01 '11 at 05:26 PM

sneftel gravatar image

sneftel
1.7k 7 9 20

Thanks :D now i can focus on 1 thing instead of searching all over the place. BTW: i was already using WWW for reading

Aug 01 '11 at 05:31 PM Chesley
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3746
x141
x62
x24

asked: Aug 01 '11 at 04:48 PM

Seen: 994 times

Last Updated: Aug 01 '11 at 05:31 PM