用户友好、非技术性的方式上传批量数据
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
非技术最终用户加载自己的数据 + 批量导入数据库 = 非常糟糕的主意
说真的,在模板中构建清晰的说明并限制用户可以添加的选项/数据类型。然后,双狗检查数据,准备优雅地失败。
如果数据通过检查(已清理) - 使用标准 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?