Delete File stopped working

Hi,

did you change the API for deleting files?

This is your documentation that we used to write our logic with.

Suddenly it doesn’t work any more.

We send:

System.HttpRequest[Endpoint=https://api.aspose.com/v1.1/storage/file/http://api.aspose.com/v1.1/words/WANTED_FILE_NAME?format=pdf&appSID=YYY&signature=XXX, Method=DELETE]
WANTED_FILE_NAME = the name of the file to delete
XXX and YYY are our keys (used for all our ASPOSE calls)

And we get receive:

System.HttpResponse[Status=Bad Request, StatusCode=400]

Please assist,

Yishay

Hi Yishay,


Thank you for contacting support. Please add reference of Aspose.Storage-Cloud API from the NuGet. We can remove a file from Aspose cloud storage as below:

[.NET, C#]
<span style=“color: rgb(0, 128, 0); background-color: rgb(255, 255, 255); font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre;”>// initialize Storage API object
StorageApi obj = new StorageApi(“AppKey Here”, “AppSID Here”);
// get response
RemoveFileResponse o = obj.DeleteFile(“Wall corners decoration.jpg”, “”, “”);
// display status
Console.WriteLine(o.Status);

Hi Imran,


Our server on force.com infrastructure, we don’t have your java/C# library.
Can you please tell me what the change in the url so we can fix this?

Thanks,
Yishay

Hi Yishay,

Thank you for the inquiry. You are concatenating Storage and Words URLs.

There is no change in the URL: http://api.aspose.com/v1.1/storage/file/mydoc.txt?appSid=xxx&signature=xxx

Please also refer the example 5 on this help topic: Working with files and directories in cloud storage|Documentation

Hi Imran,


thank you, now I see that something is corrupted with the URL we create.

Many thanks,
Yishay

Hi Yishay,


Thank you for the confirmation. Please let us know in case of any further assistance or questions.