【问题标题】:Angular file manager api ng6-file-man doesn't workAngular 文件管理器 api ng6-file-man 不起作用
【发布时间】:2020-06-25 14:50:19
【问题描述】:

我已经下载了api,但是我无法理解父路径的系统。我尝试使用邮递员调用api(https://github.com/Chiff/ng6-file-man-express), 但它不起作用。 根目录有一个“文件”文件夹,这是 API 的根目录开始的地方吗?我在名为“back”的文件夹中放置了一个填充文件夹。 我一直在努力让它工作 3 个小时,我不明白,你能帮我吗?

【问题讨论】:

  • 你好,目前我很忙于学校和另一个工作项目。我也在努力更新 FM 并删除 ngrx/store,以便我们可以使用 AOT。我希望能在 7 月 5 日尽快回复您。
  • 没问题,谢谢你创建这个

标签: angular file npm


【解决方案1】:

我找到了解决方案:

我们需要删除“/file”部分,在github示例中是:localhost:8080/api/file/download?parentPath=/folder1/someFile.txt

删除“/file/”以创建此链接: localhost:8080/api/download?parentPath=/folder1/someFile.txt

都行,你应该把和github教程里的一样的链接放上去,大家可能看不懂。

app.get('/api/list' 到 app.get('/api/file/list'

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-03-03
    • 2021-04-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多