Unsolved

This post is more than 5 years old

1 Rookie

 • 

3 Posts

1152

July 8th, 2011 13:00

REST interface file append syntax

Hello,

I've been working with the Atmos REST interface, and its ability to append to a file.  I've been able to use the Range header to append to the end of the file, but it appears I need to know the size of the object I'm appending to in order to create the Range header.

For example, for an object that is 5000 bytes, and I want to append 100 bytes to the end, I can specify in a a PUT request:

Range: Bytes=5000-5099

My question is - is there a syntax that allows data to be appended to an object without the client having to calculate the specific range to write to?

Thanks,

Paul

222 Posts

July 8th, 2011 13:00

Paul,

That's accurate --- the client needs to calculate the updated byte range and it needs to match the data sent.

Unfortunately, there's not another means of updating an object using the range header without calculating this value.

Raj

No Events found!

Top