Fun Picture Uploader
About this app
Upload your images easily with our Fun Picture Uploader. Add captions, preview images, and share your uploads!
Fun Picture Uploader Fun Picture Uploader Upload Images Upload
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Fun Picture Uploader</title>
<meta name="description" content="Upload your images easily with our Fun Picture Uploader. Add captions, preview images, and share your uploads!">
<meta name="keywords" content="picture uploader, image upload, fun app, upload images, share photos">
<!-- Libraries -->
<!-- jQuery (3.6.0) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<!-- Bootstrap CSS (5.3.3) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<!-- Bootstrap JS (5.3.3) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<!-- Font Awesome (6.6.0) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">
<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
const uploadForm = document.getElementById('upload-form');
const imageInput = document.getElementById('image-input');
const previewContainer = document.getElementById('preview-container');
uploadForm.addEventListener('submit', function(event) {
event.preventDefault();
const files = imageInput.files;
previewContainer.innerHTML = ''; // Clear previous previews
Array.from(files).forEach(file => {
const reader = new FileReader();
reader.onload = function(e) {
const img = document.createElement('img');
img.src = e.target.result;
img.className = 'img-thumbnail';
img.style = 'margin: 10px; max-width: 100px; max-height: 100px;';
previewContainer.appendChild(img);
}
reader.readAsDataURL(file);
});
});
});
} catch (error) {
throw error;
}
</script>
<style>
body {
background: linear-gradient(120deg, #ff6f61, #6fa3ef);
color: #fff;
}
h1 {
text-align: center;
margin: 2rem 0;
font-weight: bold;
}
.preview {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
margin-top: 20px;
}
#upload-form {
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
padding: 20px;
box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.btn-upload {
background-color: #28a745;
border: none;
opacity: 0.9;
}
.btn-upload:hover {
background-color: #218838;
opacity: 1;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Fun Picture Uploader</h1>
<form id="upload-form">
<div class="mb-3">
<label for="image-input" class="form-label">Upload Images</label>
<input type="file" class="form-control" id="image-input" multiple accept="image/*" required>
</div>
<button type="submit" class="btn btn-upload">Upload</button>
</form>
<div id="preview-container" class="preview"></div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!