Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Javascript - Upload image function with thumbnail.

Featured Replies

Hello everyone, I'm here to ask you information about a Javascript function,

 

I was said there was a JS function allowing the user to upload an image file through a form as exemple and displays this file as a thumbnail. I'm not talking here about JQUERY, but really something done without any framework.

 

I've searched but I can't find it at the moment. I'm curious about it, anyone would know that function ?

 

 

 

  • Author

Thank you that seems to be a good way to achieve the upload of an image. Otherwise, I had thought about a way to script it on my own. Using the indexof() function of JS, to check the last characters of the selected file, and if theses ones are corresponding to some image extensions put in an array, the image is uploaded, if not, a message would appear warning the user, something like that at least.

 

Anyway, thank you !

Edited by Azuk

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.