![]() This is where our data URI array comes into play. reader.readAsDataURL(this.files0) ('nombre').val() ('tamano'). We’re using each again to upload each file one by one. I tried on my site where use this.files0 instead and worked fine to catch the name and the size with jQuery into an input element. We’ll also show a little CSS loading bar. As I mentioned, we want to pass the data to a PHP file. Now we need to figure out what to do when the user presses the upload button. The file name can be renamed in the server end. And finally, empty the array/set z to -40 When you paste the image, it will be saved in the server with the filename as image.png. $('#extra-files #file-list li').remove() We'll also make the upload button disappear We need to remove all the images and li elements as The method takes out the part of the filename from the position that was calculated. There is also a little bit of simple CSS. The 'unacceptable' positions of the dot in the filename are -1 and 0, which refer to names with no extension ( 'name') and to names that start with a dot ('.htaccess'). If you don’t want to get symbolset you could use an alternative or just not use a symbol font all together! So first off, we need to include the appropriate files in our index.html file: Getting Startedįor this tutorial I’m using jQuery and an icon font called symbolset. We’ll also be using local storage to remember which files were uploaded by the user. To review, open the file in an editor that reveals hidden Unicode characters.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |