plugins.file.deleteFile not working?

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

plugins.file.deleteFile not working?

Postby swingman » Mon May 20, 2013 5:46 pm

Hi all,

I have a strange problem on Servoy 6.1.4 and latest java 7 on Mac OS X. Both from Developer and Servoy Smart Client.
People can import files to the server and after streaming the file to the server, I offer to delete the file using
Code: Select all
plugins.file.deleteFile(f);

returns false and does not delete the file. Is this a new Java security thing? Any way around this?
Same happens with
Code: Select all
file.deleteFile();


Any ideas?
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: plugins.file.deleteFile not working?

Postby swingman » Mon May 20, 2013 6:41 pm

Sorry, this was my bug. I was trying to delete the remote file rather than the local one.
Issue solved.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron