Sending files through command in threads results in error

Sending files through command in threads results in error

I have a command which accepts files with command and sends them in over service but if i use it in threads it results in infinite loading bar under text field. Also i spotted an error in browser while doing this