We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Delete File Issue

[17:56:25] Cameron Aubuchon: app is Freestone Slide Conversion
[17:56:28] Cameron Aubuchon: key is 09eada5b-5157-474f-a4d3-0a9241a190cd
[17:56:42] Cameron Aubuchon: and i’m using the PHP sdk
[17:57:15] Cameron Aubuchon:
$conv = new Folder();

$cnt = 0;

foreach ($conv->GetFilesList() as $file) {
if ($file->IsFolder != 1) {
$cnt ++;
}

if ($cnt > 1) die();
}
[17:57:27] Cameron Aubuchon: sorry, bad paste
[17:57:39] Cameron Aubuchon: $conv = new Folder();

$cnt = 0;

foreach ($conv->GetFilesList() as $file) {
if ($file->IsFolder != 1) {
$conv->DeleteFile($file->Path);
$cnt ++;
}

if ($cnt > 1) die();
}
[17:58:26] Cameron Aubuchon: that should delete the first file returned by the getFilesList method
[17:58:34] Cameron Aubuchon: $conv->DeleteFile returns false


Submitted from: http://saaspose.com/contact-us

Hi Cameron,

Issue SAASWEBCORE-292 which was created to support file deletion using GUI has been resolved. Now you can delete files by logging in to your account or by using following PHP code with PHP SDK:

foreach ($conv->GetFilesList() as $file) {
if ($file->IsFolder != 1)
{ $conv->DeleteFile(substr($file->Path,1)); $cnt ++; }
}

Best Regards,
Muhammad Ijaz

Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

Hi Cameron,

Did the fix provided by our team help resolve your issue? Are you able to proceed with Saaspose APIs? If you need any further assistance, please do let us know. We'll be glad to help you.

Thanks & Regards
Shahzad Latif
Saaspose Support Team.

Hi,

Yes, it worked for us. Thanks!

Cameron

Cameron Aubuchon

Chief Technology Officer

Peach New Media, Inc.

tel (770) 805-6292 x501

caubuchon@peachnewmedia.com
www.peachnewmedia.com

Like us on Facebook: www.facebook.com/PeachNewMedia http://www.facebook.com/PeachNewMedia?sk=app_206153929426145