June 14, 201313 yr 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 ?
June 15, 201313 yr 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 June 15, 201313 yr by Azuk
Create an account or sign in to comment