Welcome Guest, Not a member yet? Register   Sign In
Can't updload csv file with upload->do_upload()
#2

First check in your config file (mimes.php) if CSV is there and what are mimes attached to it.
Than check your file mime type with something like :
Code:
<form method="post" action="" enctype="multipart/form-data">
<input type="file" name="fichier" />
<input type="submit" value="ok" />
</form>

<?php
if(isset($_POST)) {
if(isset($_FILES)) {

echo '<pre>';
var_dump($_FILES);
echo '</pre>';

}

}

?>

If the mime is not in the config array, add it. If it is.... well, dunno Wink
Reply


Messages In This Thread
RE: Can't updload csv file with upload->do_upload() - by mariek - 02-09-2015, 08:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB