add month long uploading
This commit is contained in:
@@ -32,7 +32,10 @@ func main() {
|
||||
router := gin.Default()
|
||||
router.MaxMultipartMemory = 10 << 30
|
||||
router.LoadHTMLGlob("templates/*")
|
||||
router.StaticFS("/static", gin.Dir("./static", false))
|
||||
var staticPath = gin.Dir("./static", false)
|
||||
fmt.Printf("Static path: %v\n", staticPath)
|
||||
|
||||
router.StaticFS("/static", staticPath)
|
||||
|
||||
// Public Routes
|
||||
router.GET("/", func(c *gin.Context) { c.HTML(200, "index.html", nil) })
|
||||
|
||||
@@ -126,8 +126,9 @@
|
||||
<label class="text-xs font-bold uppercase">Expire In:</label>
|
||||
<select id="duration" class="border border-black text-xs p-1">
|
||||
<option value="1">1 Hour</option>
|
||||
<option value="24" selected>24 Hours</option>
|
||||
<option value="24">24 Hours</option>
|
||||
<option value="168">7 Days</option>
|
||||
<option value="730001" selected>1 Month</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user