{"id":19338802,"url":"https://github.com/fizzygalacticus/uploadarea","last_synced_at":"2026-05-14T08:31:45.005Z","repository":{"id":57387275,"uuid":"84289997","full_name":"FizzyGalacticus/UploadArea","owner":"FizzyGalacticus","description":"A functional yet customizeable drag and drop file uploader written in Vanilla Javascript.","archived":false,"fork":false,"pushed_at":"2017-12-08T09:49:11.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-24T14:10:37.349Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FizzyGalacticus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-08T07:07:46.000Z","updated_at":"2017-03-09T18:59:49.000Z","dependencies_parsed_at":"2022-09-07T13:21:26.071Z","dependency_job_id":null,"html_url":"https://github.com/FizzyGalacticus/UploadArea","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FizzyGalacticus%2FUploadArea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FizzyGalacticus%2FUploadArea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FizzyGalacticus%2FUploadArea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FizzyGalacticus%2FUploadArea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FizzyGalacticus","download_url":"https://codeload.github.com/FizzyGalacticus/UploadArea/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240441992,"owners_count":19801806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T03:18:44.820Z","updated_at":"2026-05-14T08:31:44.936Z","avatar_url":"https://github.com/FizzyGalacticus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UploadArea\n\nThis project is to (hopefully) become an extremely easy to use, fully customizable drag-and-drop file upload handler written in ES6 and compiled down to ES5.\n\nAll you need to do to get started is create a ```\u003cdiv\u003e``` with an id, then create a new ```UploadArea``` object with the id and page to POST to specified in the options:\n\n```html\n\u003cdiv id=\"myDragDrop\"\u003eDrag Here\u003c/div\u003e\n\n\u003cscript\u003e\nvar uploadArea = new UploadArea('myDragDrop', {sendTo:'https://myurl.com'});\n\u003c/script\u003e\n```\n\nHere is a full list of options/functions that can be passed to the constuctor:\n\n**Name**|**Type**|**Description**\n-----|-----|-----\nsendTo|string|URL to post files to. By default this is ```https://posttestserver.com/post.php```.\nallowDrop|boolean|Default value is ```true```. When true, allows users to drag and drop files into the UploadArea for uploading.\nupload|function|When set, this is called instead of the UploadArea default upload function. It is passed a list of File objects which can be used for custom uploading.\nprogress|function|Function to be called when upload progress is made. When overridden without the upload function being overridden, this is passed an XMLHttpRequest progress event.\ncomplete|function|Called when upload has completed successfully and is passed the response message from the server.\nerror|function|Called when an error occurs during the upload process and is passed the full response from the server.\nallowMultiple|boolean|Default value is ```true```. When true, UploadArea will allow multiple file uploads at the same time. When false, only a single file is allowed. When multiple files are dropped onto the UploadArea and this is false, only the first file in the array is sent.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffizzygalacticus%2Fuploadarea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffizzygalacticus%2Fuploadarea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffizzygalacticus%2Fuploadarea/lists"}