Put to upload file

Dan7312Dan7312 Registered Users Posts: 1,330 Major grins
I am able to upload files using the 1.2.0 api but I'm want to understand a bit more about the api for uploading.

What is the relationship between the file being PUT and the name in the X-Smug-FileName header?

For example:

"http://upload.smugmug.com/test.jpg

and

conn.setRequestProperty("X-Smug-FileName", "test1.jpg");

What if these names are different? Where is the X-Smug-FileName header even needed?

It seems like it doesn't matter what the file name in the url is.

Thanks,
Dan

Comments

Sign In or Register to comment.