Is it possible to upload image and rename it only with Java Script?

2

Is there any way to get the request image file, save it to a directory, and change its name from the server using JavaScript ?

    

asked by anonymous 27.10.2016 / 13:09

2 answers

1

I have been searching, and actually using only JavaScript is impossible to upload files, for security reasons it is only possible to load files on the client side, ie we can not rename, move or something like < in> (Manipulate) .

Unless we use NodeJs to create a API with JavaScript .

    
11.11.2016 / 13:20
0

No, for security reasons you do not have control over handling client-side files, you can rename it after it receives on the server side.

    
27.10.2016 / 15:56