add month long uploading

This commit is contained in:
2026-02-27 14:34:03 +01:00
parent 514ace22ec
commit d0eef4853a
2 changed files with 6 additions and 2 deletions

View File

@@ -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) })

View File

@@ -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>