Questions tagged as 'upload'

1
answer

Upload PHP does not work

Good afternoon, I'm trying to do the file upload function via PHP using the code below: if(isset($_FILES['arquivo'])) { $diretorio = "D:/wamp64/www/revi/arquivos/postagens/".$postagem; if(!is_dir(...
asked by 20.11.2016 / 20:51
1
answer

"No such file or directory" error but the file is stored in the database

I have the following problem: when I submit a form containing photos, the error described in the title appears. If you upload, only one photo will not appear. but even giving it error he is saving the images in the bank. Can someone tell me the...
asked by 03.12.2015 / 18:02
1
answer

Upload file via FTP - PHP

I'm trying to upload files to a specific folder on my Hostgator server, however I put the exact path of the folder and the file does not appear in the folder that set the path, it appears in the root folder. Here is the code: ' /*----------...
asked by 01.11.2018 / 15:00
2
answers

Error uploading image in Wordpress

I'm trying to upload an image to a site powered by Wordpress and the following error is occurring: The file is empty. Upload something more substantial. This error may also have happened if uploads are disabled in your php.ini or if the sett...
asked by 27.02.2014 / 02:41
1
answer

Does anyone know where the error is in this code?

The error that is generated is as follows:    Notice: Only variables should be passed by reference in Can you tell me how to solve it? According to the error, it is in this part: $extensoes_aceitas = array('bmp' ,'png', 'svg', 'jpeg', '...
asked by 05.09.2018 / 00:51
2
answers

Difficulty sending Image to the Database

I am having difficulty sending an image to my database. Only the file name is going but File is not being Upgraded to DB. Follow the Upload script: if(isset($_POST['acao']) && $_POST['acao'] == 'editar'): $foto = $_FILES['fot...
asked by 09.05.2017 / 17:00
1
answer

Permissions error when trying to send a file with PHP

<html> <body> <form action="" method="post" enctype="multipart/form-data"> Selecione : <input name="arquivo" type="file"> <input type="submit" value="Enviar"> </form> <?php /...
asked by 06.05.2017 / 15:43
1
answer

Changing the identification data of a file at upload

I'm trying to rename a file according to what the user provides, but an error occurs but is given as $_FILES["arquivo_foto"]["error"] -> 0 Shipping Script <?php $diretorioimagens = "arquivos/image/"; $uploadarquivo = $diretor...
asked by 12.05.2017 / 17:09
2
answers

Uploading multiple images by saving only one file

My code is saving only one image of X that I select in the input file, for example, if I select 3 or 10, only 1 image will be saved, I tried everything and I can not make it save all images in the folder ... public function add_multiple...
asked by 27.07.2017 / 01:49
1
answer

Watermark upload image in codeigniter

Hello! I'm trying to insert a watermark when registering the image, but the image is up, but it does not insert the watermark or return errors, does anyone have any suggestions? Follow the code below: foreach ($_FILES as $field => $file)...
asked by 25.02.2016 / 20:55