需要向客户网站添加安全的 ftp 文件上传区域
这是上一个问题的变体,因为我在所有不懈的在线搜索中很难找到答案。
我正在为一家建筑公司设计一个网站。他们希望客户能够通过 ftp 通过其网站上的链接将文件上传给他们。他们还希望客户能够登录,并确保上传的安全。
我可以弄清楚如何制作一个具有文件上传区域的表单 - 但只是不了解 ftp 和安全部分...
我了解 html、css 和一点 JQuery;其余的对我来说仍然非常具有挑战性。
找到了一个叫做 net2ftp 的东西,它声称可以做我正在寻找的事情 - 但甚至还有安装说明(对于管理员,这里: http://www.net2ftp.com/help.html)让我困惑。我需要 MySQL 数据库吗?我在哪里输入他们提到的管理员密码?事情还在继续……
有没有人知道的“更容易”的事情?我读到我应该在谷歌上搜索“文件管理器” - 但不知道这些是否可以嵌入到客户的网站中。
我什至需要了解当客户单击上传链接时,该文件会发生什么以及它最终会在哪里。
哦——我对这件事太不知所措了。
This is a variation on a previous question as I am having tons of trouble finding answers in all my relentless online searches.
Am designing a website for an architecture firm. They want their clients to be able to upload files to them, through a link on their site, via ftp. They also want to have a sign in for their clients, and ensure the uploads are secure.
I can figure out how to make a form that has a file upload area - but just don't understand the ftp and the secure part...
I understand html, css and a bit of JQuery; the rest is still very challenging to me.
Have found something called net2ftp that claims to do what I'm looking for - but the even the installation instructions (for administrators, here: http://www.net2ftp.com/help.html) confuse me. Do I need a MySQL database? Where do I put in Admin password they refer to? It goes on...
Is there anything "easier" out there that anyone knows of? I have read that I should be Googling "file managers" - but don't know if these can be embedded in a client's website.
I even need to understand of what happens to said file, and where it ends up, when client clicks the upload link.
Oh - I am so in over head on this one.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,只需将文件移动到可从 FTP 服务器访问的同一目录,就可以将 HTTP 上传到 FTP 服务器。例如,假设 FTP 服务器有一个可以访问 /home/ftp 的用户。上传完成后,您可以简单地将上传的文件移动到那里(例如,通过在 PHP 中使用 move_uploaded_file() )。
安全部分可以指SSL(相当复杂,而且设置可能属于服务器故障),或者只是一个登录系统;后者可以用数据库来实现。
总的来说,从声音来看,这个项目现在对你来说可能有点太多了。您应该:
As far as I can see, it's possible to make a HTTP upload to a FTP server simply by having the file moved to the same directory accessible from a FTP server. For example, say that the FTP server has a user who can access /home/ftp. You may simply move uploaded files there once the upload finishes (by using move_uploaded_file() in PHP, for example).
The secure part could refer to SSL (quite complicated, and setting this up probably belongs on serverfault), or just a log in system; the latter can be implemented with a database.
Overall, from the sound of it, this project may be a little too much for you right now. You should: