Hello again ๐
i kind of noticed, that nevertheless what you choose as “show counter” it will always be 0.
if($_POST['wpdmtask']=='create'){
extract($_POST);
$file['show_counter'] = 0;
Suggestion (something like this, i am not so much into php…)
$file['show_counter'] = $file['show_counter']?$file['show_counter']:0;;