Backendless Support
 
Solved

saveFile Overwrite JavaScript

I could have sworn this was working but the overwrite parameter isn't working. I get a 6003 error.

Backendless.Files.saveFile(AppConfig.AVATAR_FOLDER, fileName, byteArray, true, new Backendless.Async(

(fileURL) => {

console.log('app.group.ts avatar save to Backendless successful', fileURL);

resolve(fileURL);

},

(err) => {

console.log('app.group.ts avatar save to Backendless error', JSON.stringify(err));

reject(err);

},

this)

);

Leave a Comment

Comments (6)

photo
1

Hi Dan,

is this for 3.x or 4.0 environment?

Also, what is your app id?

Regards,

Mark

photo
1

F8B0D502-BC81-2EE4-FFE7-E0FECB644000

Socialteetime

3.0

Thanks

photo
1

Hi Dan,

I have checked overwriting functional - it works properly. Could please clarify which version of JS SDK are you using? If it is not v3.1.23 I'd strongly recommend you to update to latest version and check your issue again.

Regards,

Stanislaw

photo
1

Hi Dan,

is the problem already solved for you or you still receive this error?

photo
1

Hi Stanislaw,

This is resolved. It was a coding error on my part.

Thanks,

Dan

photo
1

Ok, thanks for answer. I will mark this issue as Solved.

Regards,

Stanislaw