Giter Site home page Giter Site logo

robsonvleite / uploader Goto Github PK

View Code? Open in Web Editor NEW
171.0 171.0 25.0 46 KB

It is a easy PHP upload manager for images, files and media in your application (Uploads de imagens, arquivos e medias de forma fácil e segura)

Home Page: https://www.upinside.com.br

License: MIT License

PHP 96.04% CSS 3.96%

uploader's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uploader's Issues

send class adds extension to file name

Hi
I'm using this code to upload
$fileUploader = new CoffeeCode\Uploader\Send("data/torrents", "torrent_files", ["application/x-bittorrent"],["torrent"],FALSE); $Torrent['filename'] = $fileUploader->upload($_FILES['torrent'], $TorrentID . ".torrent");
the uploaded file name looks like this 1000-torrent.torrent
I want it to be 1000.torrent , how to fix this ?

Erro upload jpeg arquivo baixo da Net.

Baixei uma série de arquivos para upload da net. De uma séria de 10 em 3 ocorreram esse erro: Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Not a JPEG file: starts with 0x89 0x50 in /Applications/XAMPP/xamppfiles/htdocs/XXXXXXXXXX/vendor/coffeecode/uploader/src/Image.php on line 62. Verificando o arquivo ele não abre no Photoshop. Teria como verificar e não quebrar o código no retorno? Ele gera o erro e no final retorna a string com o endereço do upload e salva um registro no banco de dados porém sem a imagem.

Arquivox XML

Teria como colocar a extensão XML disponível para upload nos arquivos pelo método FILE?
Resolvido. Na documento tem a opção SEND.
Obrigado

PHP FILTER_SANITIZE_STRING deprecated in PHP 8.1

Olá!
Ao atualizar minha aplicação para o PHP 8.1 notei que o cropper utiliza o filtro PHP FILTER_SANITIZE_STRIPPED na funcion "name", e este filtro foi depreciado nessa versão do PHP.

No projeto fsphp utilizamos bastante esse filtro e o alias dele, o FILTER_SANITIZE_STRING, porém ainda não sei ao certo como contornar isso, uma vez que o FILTER_SANITIZE_SPECIAL_CHARS substitui as tags ao invés de removê-las, no caso da função "str_slug" não serviria.

Desde já, agradeço a atenção! :)

Aviso de arquivo não suportado

[ Linha 117 ] exif_read_data(phpD847.tmp): File not supported
C:\xampp\htdocs\fsphp\07-recursos-e-componentes\vendor\coffeecode\uploader\src\Image.php

A classe suporta o arquivo png, tanto é que o arquivo é carregado na pasta corretamente, contudo ao testar diversos arquivos desta extensão é disparado o aviso citado acima conforme imagem:
image.

O mesmo erro não ocorre para arquivos (.jpg e .gif).

Erro ao fazer upload das imagens

Olá, quando faço upload tenho este erro.
Att.


Fatal error: Uncaught Error: Call to undefined function CoffeeCode\Uploader\exif_read_data() in /home/lupapet/public_html/vendor/coffeecode/uploader/src/Image.php:116
Stack trace:
#0 /home/lupapet/public_html/vendor/coffeecode/uploader/src/Image.php(64): CoffeeCode\Uploader\Image->checkAngle(Array)
#1 /home/lupapet/public_html/vendor/coffeecode/uploader/src/Image.php(37): CoffeeCode\Uploader\Image->imageCreate(Array)
#2 /home/lupapet/public_html/AppPets/php/register-company.php(299): CoffeeCode\Uploader\Image->upload(Array, 'logotipo-de-pet...', 1920)
#3 {main}
thrown in /home/lupapet/public_html/vendor/coffeecode/uploader/src/Image.php on line 116

Type Webp

Fala Robson, beleza...
sentir a neccecidade de trabalhar com o tipo de imagem Webp
pra resolver temporariamente fiz a sequinte modificação:

Arquivo src/Image

function imageCreate(array $mage): bool
{
    .....
    if ($image['type'] == "image/webp") {
            $this->ext = "gif";
            return true;
        }
}

mesmo na conversão de webp pra gif, ele funcionou.
uso bastante sua biblioteca, muito fácil de usar!
Vlw, aguardo algum novidade!

Felipe A. Parnamirim/RN

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.