Skip to content

Instantly share code, notes, and snippets.

View danrydell's full-sized avatar
馃挱
I may be slow to respond.

Dan danrydell

馃挱
I may be slow to respond.
View GitHub Profile
@danrydell
danrydell / croppie_tutorial.md
Last active March 7, 2021 21:24
Croppie, Jquery, PHP using normal File Input. No drag & Drop

Croppie, Jquery, PHP using normal File Input. No drag & Drop

Croppie home

I want to use an html input type file to select the file to crop, if croppie fails the html input will work. Both pictures will be uploaded, the original through normal form submission, and the cropped one in base64 (or blob) This may be bad because you store two files, but the advantage is you have the original untouched file, a backup method just in case croppie fails, and the original file might be a webp, jpeg or png, but croppie forces you to choose just one format. So you keep the original format.

We cannot put the cropped file inside the input type=file because those controls are read-only for security reasons so we need to create: ``

"1";"AB";"Artes: aspectos generales";"1"
"2";"ABA";"Teor铆a del arte";"2"
"3";"ABC";"Conservaci贸n, restauraci贸n y cuidado de obras de arte";"2"
"4";"ABK";"Adulteraci贸n, falsificaci贸n y sustracci贸n de obras de arte";"2"
"5";"ABQ";"Arte: aspectos econ贸micos";"2"
"6";"AC";"Historia del arte / Estilos de arte y dise帽o";"1"
"7";"ACB";"Estilos de arte no definidos por fecha";"2"
"8";"ACBK";"Arte de los pueblos ind铆genas";"3"
"9";"ACBN";"Arte na茂f";"3"
"10";"ACBP";"Arte oriental";"3"
@danrydell
danrydell / C贸digos IBIC con niveles en tabla para base de datos
Created April 25, 2015 13:14
IBIC Sistema de clasificaci贸n de materias Versi贸n 1.1 rev1 en espa帽ol Octubre del 2011
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Table structure for table `ibic`