Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="row">
- <div class="col s10">
- <div class="bg-branco">
- <input name="avariaNome[]" type="text" placeholder="Referencia">
- <input name="avariaFoto[]" type="file">
- </div>
- </div>
- </div>
- if (!empty($_FILES['avariaFoto']['name'])) {
- $handle = new upload($_FILES['avariaFoto']);
- if ($handle - > uploaded) {
- $handle - > file_new_name_body = date('dmYhis');
- $handle - > image_resize = true;
- $handle - > image_x = 800;
- $handle - > image_ratio_y = true;
- $handle - > jpeg_quality = 80;
- $handle - > image_convert = 'jpg';
- $handle - > file_overwrite = false;
- $handle - > file_auto_rename = true;
- $handle - > mime_check = true;
- $handle - > Process('imagens/');
- $foto = $handle - > file_dst_name;
- if ($handle - > processed) {
- $handle - > clean();
- } else {
- echo ' Erro: '.$handle - > error.
- '';
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement