Skip to content
Advertisement

Tag: file

Upload compressed image file from client-side using JavaScript

I am trying to compress images on client side using JavaScript on some low bandwidth devices and I’m currently stuck in a limbo using the HTML5 File API. I’m new to this, please bear with me if I’m missing something important. I have some input tags which should ideally open the mobile camera, capture single image, compress and send files

Remove files which have not filename duplicates

For each document (.pdf, .txt, .docx ecc) I have also a corresponding json file with the same filename. Example: file1.json, file1.pdf, file2.json, file2.txt, filex.json, filex.pdf, But I got also some json files which are not accompanied with the corresponding document. I want to delete all json files which have no corresponding document. Im really stucked because I cant find a

Laravel 8 file upload validation fails with any rule

I want to validate a file upload but with literally any validation rule, I get “The (name of input) failed to upload.” I’ve seen this issue in a few places but none of the solutions worked for me. I’m using Laravel 8.0, php 8.0.2, and nginx/1.18.0 on ubuntu. Controller: Blade file: If I get rid of the validation rule for

How to solve the fatal error in require_once

My project has two entry point for example File 1:/index.php ( first entry point) – here we include the config form the config folder File 2:service/service.php – here we include the config form the config folde if i call the File 2:service/service.php has no fatal error but when i call the File 1:/index.php it became the fatal error as failed

Advertisement