Replace existing file ???

How can I replace existing file, while doing the upload file ??

I tried replacing - but am getting error — (BackendlessFault{ code: ‘IllegalArgumentException’, message: ‘Unable to upload file: file already exists’ }) ??

I am using this API in Android - “public void Backendless.Files.upload( File file,String remotePath,AsyncCallback<BackendlessFile> responder )”

Can you please confirm, if its an issue or feature ??

Hi Aditya!
‘overwrite’ parameter already available in Android SDK for upload method:

thanks - I didn’t check the class, was relying on documentation - will make it a point to check actual class implementation once, before asking here :slight_smile:

Aditya,

The documentation in this case is slightly behind the implementation - it is missing the overwrite parameter. Will be fixed shortly.

Mark