Upload text file without extension
I found out that leaving the extension with an space instead of empty work, but I wonder how secure it this solution. In my case I remove the file a second after I upload it as I am only interested on its content.

Here is the code that worked for me:

$validators = array('file_validate_extensions' =&gt; array(' '));
$file = file_save_upload($i, $validators);


Thank you.