Questions tagged as 'upload'

0
answers

How to record the images inside the project?

Greeting for all, I'm working on a Java Web project that is using JSF with PrimeFaces, Maven, CDI with JPA. My web application is successfully inserting the logs, the application is a news registry, and thank goodness the application is wi...
asked by 31.07.2015 / 20:45
1
answer

Inserting Image into the Database with Java Web

I'm having trouble inserting an image into a database. I already have a save method and I'm including a photo field, but I'm not sure how to implement to upload the image. Who can help me, I'll be grateful. Below are the codes: package c...
asked by 15.03.2015 / 03:30
0
answers

Uploading images of different inputs using PHP and MySQL

I'm developing a PHP system that will generate a folder to be placed in the shop window. My form is composed of some fields, among them, 4 <input> type file to upload a featured image and another 3 for galleria. I have created...
asked by 20.05.2015 / 15:30
1
answer

Deleting multi-upload files

I have the following code that includes files to upload: HTML <p>Utilize a tecla <b>Ctrl</b> para selecionar mais de um arquivo.</p> <div id="multiple_upload"> <input type="file" multiple="multiple" id="...
asked by 24.03.2016 / 14:56
1
answer

upload update

I have a problem with the way to save the upload file. I have a php file that does the update that is in the folder it processes, and an upload folder to save the files that have been saved. $id = $_POST['id']; $titulo = $_POST['titulo']; $de...
asked by 09.08.2017 / 16:24
2
answers

Image upload does not work PHP

I have the following page in PHP: <?php session_start(); ?> <!DOCTYPE html> <html> <head> <title>Cadastro de Operacional</title> <meta charset="utf-8"> <meta name="viewport" content="wi...
asked by 06.07.2018 / 12:59
3
answers

Generate new name for the image during upload - php

I use the code below and it works correctly, however I need to change the name of the image during UPLOAD. <?php require_once('conexao.php'); ?> <?php $cliente = $_GET['cliente']; $cod = $_GET['cod']; $uploaddir = "./clientes/".$clie...
asked by 30.12.2015 / 17:06
3
answers

Rename image name on upload

I'm using resize-class to upload resizing, and other options if needed. My only problem is that I want to change the name of the image when uploading, so there are no images with the same name and even for privacy reasons. I want somethi...
asked by 19.06.2014 / 23:06
1
answer

How to protect myself from this PHP Backdoor?

A few days ago a site that I developed was invaded by those famous backdoor php. What I wonder is where is the root cause of the invasion of this blackhat? I know I should control the permissions of my folders as needed and insert htaccess to pr...
asked by 30.06.2016 / 19:20
2
answers

How do I upload an image that can be updated but remains with the same name? [closed]

Hello. As the title of the question itself says, I'd like to know how to upload a file in png, jpg or jpeg where its name is always kept as profilepic. in the [DOCUMENT_ROOT] directory / images. How to do this? I have tried to read some tutorial...
asked by 05.12.2016 / 21:29