我正在开发的 Web 应用程序要求用户选择一个文件夹来创建一个 json 文件。我在网上查看过,但这只有在我对代码中的目录进行硬编码时才有可能。
flutter web 的 folder_picker 包有什么替代方案吗?
最佳答案
The web app I'm working on requires the user to select a folder to create a json file in.
那永远行不通。 Web 应用程序,无论使用什么语言,都不能直接写入用户文件系统。如果可以,那将是一个重大的安全问题,您会在头条新闻中听到。
您需要与要求将其作为功能的任何人交谈。它无法通过 Web 应用程序完成。
关于flutter - 用于 Flutter Web 的 folder_picker?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63806952/