用户友好、非技术性的方式上传批量数据

发布于 2024-12-22 13:25:04 字数 140 浏览 3 评论 0原文

我正在使用 FuelPHP 构建一个系统,用户可以在其中下载 CSV 模板,填充它,然后将其上传以将记录批量导入到数据库中。我觉得我正在用这个重新发明轮子,尽管我没有看到任何实现。

允许一般非技术人员上传批量数据的最佳/标准/正确/巧妙的方式是什么?

I'm building a system using FuelPHP in which users can download a CSV template, populate it, then upload it to mass import records into a database. I feel like I'm reinventing the wheel with this one, although I don't see any implementations.

What is the best/standard/right/slick way to allow users who are generally non-technical to upload bulk data?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

软糯酥胸 2024-12-29 13:25:04

非技术最终用户加载自己的数据 + 批量导入数据库 = 非常糟糕的主意

说真的,在模板中构建清晰的说明并限制用户可以添加的选项/数据类型。然后,双狗检查数据,准备优雅地失败。

如果数据通过检查(已清理) - 使用标准 PHP 技术来防止注入 - 如何防止 PHP 中的 SQL 注入?

Non-technical end users loading their own data + mass import into database = very bad idea

Seriously, Build into your template clear instructions and limit the options/data types the user can add. Then, double dog check the data and be prepared to fail gracefully.

If data passes inspection (is sanitized) - use standard PHP techniques to guard against injection - How can I prevent SQL injection in PHP?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文