I created an upload function, but it doesn't work, can anyone help me
code:
<div class="notify">%notify%</div>
<div class="link">%cdn_link%</div>
<input type="file" name="file" accept="image/jpg, image/jpeg" />
<input type="text" name="dir" value="56445" />
<input type="submit" />
config:
<file>{{POST(file)}}</file>
<dir>{{POST(dir)}}</dir>
notify message: Error: No file selected