-1

I'm trying to upload files or multiple files on a web application using AngularJS and C#

Is it entirely possible to rename the files that were successfully uploaded?

Just to avoid confusion, I want to rename the files on the local drive to have "_done" on their file name as a marker that they have been uploaded already.

Thanks!

ProgrammingLlama
  • 36,677
  • 7
  • 67
  • 86

1 Answers1

1

JS does not have edit access to the local-filesystem for security reasons.

Read more here: https://www.quora.com/How-do-I-copy-and-modify-locally-stored-files-using-JavaScript

The only JS solution would be to use node.js but that requires a server or development-server and would not be possible on a public website.

Renaming files using node.js

Badrush
  • 1,247
  • 1
  • 17
  • 35