Questions tagged as 'upload'

2
answers

Uploading files with Java

Good morning! I was trying to upload files, where I have a webpage that makes a request for my servlet. In the form of the page I have an input of type file and another one of type text. The coding mode of this form is as "multipart / form-data"...
asked by 31.01.2018 / 11:10
1
answer

How to preview the title of the selected file via Javascript?

I have a code for previewing images upload in Javascript. But I would like to use with document format, so instead of showing the image that will be loaded, show only the name of the pdf / word file or an icon as well. Code I've already done:...
asked by 08.09.2017 / 16:07
2
answers

How to upload image using ajax and PHP?

I'm trying to upload images with AJAX and PHP, but I'm not successful and can not find the error. My code is: $('.arquivo').change(function() { var fileName = $(this)[0].files[0].name; var formData = new FormData($('.photo_change'...
asked by 25.06.2018 / 00:37
1
answer

How do I check if a $ _FILE has been set?

All right? I'm trying to run this code: if(empty($_FILES['imagem']['name'])){ $upload = new Upload(); $novoNome = $upload->efetuarUpload($_FILES["imagem"]); $pontoTrocaAlterado->setImagem($novoNome); } I need only when...
asked by 28.06.2017 / 21:22
1
answer

Uploading image with JS

Good afternoon, I'm trying to upload image using JS but I'm not getting it, I'm not using jQuery, I'm using Axios. So far, I've tried it that way var files = document.getElementById("inputPhoto").files; axios.post(url+'api.php', {...
asked by 18.06.2017 / 17:09
1
answer

Uploading image Laravel 4.2 and Ajax

I'm trying to upload an image, to save it along with the rest of the fields, but when I press the save button, the image field goes empty .. This is the Form <div class="panel"> <div class="panel-heading"> <h3><i...
asked by 05.05.2017 / 17:56
1
answer

How to use the upload approach saving the path in the bank?

I created a Java Web project that is using JSF with PrimeFaces, Maven, CDI with JPA. My web application is successfully entering the records, the application is a news register, where it is also necessary to insert a photo, the upload approach...
asked by 31.07.2015 / 14:03
1
answer

Problem upload image with more than 10mb primefaces

Guys, I'm going through a pretty annoying and seemingly simple problem and I have not found a solution yet, can anyone help me? I am using the upload of primefaces and it simply does not upload files larger than 10mb ... A 9.9mb file goes normal...
asked by 10.12.2014 / 17:05
1
answer

Error while uploading file to the database

I'm trying to upload a file to the database. Except that instead of sending the file itself, it is sending the temporary location of it. My code looks like this: $arquivo = $_FILES['arquivo']; $name = $arquivo['name']; $file_tmp = $arquivo[...
asked by 03.10.2014 / 19:23
1
answer

how to add Media in the Wordpress Library programmatically?

Consider the situation where hundreds of .jpg files are already available in the wp-content/uploads/2014/09 directory by default and need them to appear in the Media Library ( link ) of the WordPress site. Is there any SQL scrip...
asked by 22.09.2014 / 15:18