
-
1. Re: How to upload a file into the directory in the atmos using .NET
Jason Cwik Aug 22, 2011 9:34 PM (in response to kartike)kartike wrote:
{oId = upload.CreateObjectOnPath(
new ObjectPath("/sample/"), "C:/Users/karthike/Desktop/karthik/documents/pssswords.txt", acl, null);Hi Karthik,
The ObjectPath is incorrect. You must give the full path name for the destination file. Try:
oId = upload.CreateObjectOnPath(
new ObjectPath("/sample/passwords.txt"), "C:/Users/karthike/Desktop/karthik/documents/pssswords.txt", acl, null); -
2. Re: How to upload a file into the directory in the atmos using .NET
kartike Aug 22, 2011 10:21 PM (in response to Jason Cwik)Hi Jason,
I tried like that It's also working.But My doubt is that once i uploaded the file into the directory.I checked in atmosFox the file that i uploaded is there with a none content.i cant download it.Let me know the solution
-
3. Re: How to upload a file into the directory in the atmos using .NET
Jason Cwik Aug 23, 2011 3:55 AM (in response to kartike)kartike wrote:
Hi Jason,
I tried like that It's also working.But My doubt is that once i uploaded the file into the directory.I checked in atmosFox the file that i uploaded is there with a none content.i cant download it.Let me know the solution
After upload, check the Failed and TotalBytes properties on the UploadHelper object. You could also try it without the UploadHelper:
EsuApi api = new EsuRestApi(....)
api.CreateObjectOnPath(path, acl, null, File.ReadAllBytes(filename), "text/plain")