爱意满满的作品展示区。
diveinto

学 vue.js, copy 了一个临时存文件的网站

  •  
  •   diveinto · Oct 3, 2017 · 3912 views
    This topic created in 3337 days ago, the information mentioned may be changed or developed.

    snapfilex.com

    就是上传后,根据链接可以下载。下载后文件就删除了。

    其实前端基本没啥,不过确实是用 vuejs 撸的。

    11 replies  •  2017-10-07 20:09:57 +08:00
    cevincheung
    cevincheung
    Oct 3, 2017
    1
    [下] 后即焚 噗
    q8515620
    q8515620
    Oct 3, 2017 via Android
    2
    文件大小有限制吗?
    diveinto
    diveinto
    OP
    Oct 3, 2017
    3
    @q8515620 前端限制了一下最大 512M,不过现在上传下载速度都没优化,传个 10M 的就已经开始考验耐心了,所以这个数值的实际意义。。

    后面会考虑优化下速度,用 ucloud 或者阿里的 oss 什么的
    q8515620
    q8515620
    Oct 3, 2017 via Android
    4
    @diveinto 👍
    qq316107934
    qq316107934
    Oct 3, 2017❤️1
    5
    @diveinto #3 感谢分享,万以内随机数很容易被碰撞攻击,可以考虑加入字母等复杂一些或者可以自定义 URL 之类的
    diveinto
    diveinto
    OP
    Oct 3, 2017
    6
    @qq316107934 谢谢建议~

    确实是这样的,现在的逻辑比较简陋,后面就改
    15015613
    15015613
    Oct 3, 2017
    8
    15015613
    15015613
    Oct 3, 2017
    9
    @diveinto
    亲身试验,最大 50M 的文件都传不了

    POST http://api-snapfile.liumingmin.com/send 500 ()
    zhihaofans
    zhihaofans
    Oct 3, 2017 via iPhone
    10
    下载不小心按了暂停后再继续文件还在吗
    timothyye
    timothyye
    Oct 7, 2017 via Android
    11
    url 是数字的,会不会被程序穷举下载,哈哈
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   871 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 21:39 · PVG 05:39 · LAX 13:39 · JFK 16:39
    ♥ Do have faith in what you're doing.