Reputation: 895
Is it possible to upload a file from a local machine to the same local machine using JavaScript and/or server technology? The scenario was I had to get a image file from local , do manipulations/ cropping and then save it on that local machine. my website is hosted in another country.
Upvotes: 0
Views: 1426
Reputation: 1674
Just use ImageMagick on the file itself, most hosting servers support it.
Maybe this helps:
http://mondaybynoon.com/2007/01/22/crop-resize-with-javascript-php-and-imagemagick/
Upvotes: 0
Reputation: 250842
You would need to upload the file to your server, using a normal file upload. After you have performed the manipulations you would provide a link for the user to download the file.
You cannot force the download back to local storage, the user has to accept the download.
Upvotes: 1