Skip to content

Instantly share code, notes, and snippets.

View jonahgeek's full-sized avatar
🏠
Too Mobile

Jonathan Mwebaze jonahgeek

🏠
Too Mobile
View GitHub Profile
@jonahgeek
jonahgeek / image upload.js
Created October 14, 2021 07:53
Handling image upload in react
const handleImageUpload = async (e) => {
// get the file name
const file = e.target.files[0];
// attach file
const bodyFormData = new FormData();
bodyFormData.append("image", file);
// set fieldValue state
@jonahgeek
jonahgeek / install laravel on ubuntu 20.04.md
Last active April 26, 2023 03:52
Install Laravel on Ubuntu 20.04

Step 1

Open terminal and type

$ sudo apt update

Step 2

Install apache web server