开发者

file upload from local machine on local machine

开发者 https://www.devze.com 2023-04-11 23:51 出处:网络
Is it po开发者_如何学Pythonssible 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

Is it po开发者_如何学Pythonssible 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.


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.


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/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号