需要向客户网站添加安全的 ftp 文件上传区域

发布于 2024-09-04 00:20:29 字数 577 浏览 11 评论 0原文

这是上一个问题的变体,因为我在所有不懈的在线搜索中很难找到答案。

我正在为一家建筑公司设计一个网站。他们希望客户能够通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑看君怀她人 2024-09-11 00:20:29

据我所知,只需将文件移动到可从 FTP 服务器访问的同一目录,就可以将 HTTP 上传到 FTP 服务器。例如,假设 FTP 服务器有一个可以访问 /home/ftp 的用户。上传完成后,您可以简单地将上传的文件移动到那里(例如,通过在 PHP 中使用 move_uploaded_file() )。

安全部分可以指SSL(相当复杂,而且设置可能属于服务器故障),或者只是一个登录系统;后者可以用数据库来实现。

总的来说,从声音来看,这个项目现在对你来说可能有点太多了。您应该:

  1. 询问他们想要的更详细的规范(并提出替代方案,如果这能让您的生活更轻松),并
  2. 不断努力,直到您充分掌握 Web 脚本(例如 PHP)和数据库(例如 MySQL)。

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:

  1. Ask for more detailed specifications for what they want (and propose alternatives if it makes your life easier), and
  2. Work your way up until you have a good grasp of web scripting (e.g. PHP) and databases (e.g. MySQL).
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文