开发者

file upload from local machine on local machine

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜