简体   繁体   English

如何将文件上传到页面路径?

[英]How to upload file to the page path?

I search it every where but not found right answer, I'm trying to upload file using jQuery plugin, But I don't know to where file save when I upload file using this plugin. 我在每个位置搜索它,但找不到正确的答案,我正在尝试使用jQuery插件上传文件,但是当我使用此插件上传文件时,我不知道文件保存在哪里。 My need is when file upload it save automatically to the page path. 我需要的是文件上传时自动保存到页面路径。

Plugin Url: 插件网址:

http://hayageek.com/docs/jquery-upload-file.php

Demo Here Here演示

To upload a file to a website you need a server listening to request on the end. 要将文件上传到网站,您需要服务器最终侦听请求。 Jquery can be used to simplify getting the file to the server but once there the server has to accept it and copy it to the hard drive. jQuery可以用来简化文件到服务器的获取,但是一旦到达服务器,服务器就必须接受它并将其复制到硬盘驱动器。 Think about it like this, it would be a real problem if anyone could post anything to your server and have it be copied to your server. 这样考虑一下,如果任何人都可以将任何内容发布到您的服务器并将其复制到您的服务器,那将是一个真正的问题。 Hope this helps, or at least points you in the right direction. 希望这会有所帮助,或者至少会为您指明正确的方向。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM