FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Some good fix and changes in UploadServlet by paolobiavati · Pull Request #1 · klaalo/jQuery-File-Upload-Java · GitHub

Some good fix and changes in UploadServlet - #1

Open
paolobiavati wants to merge 3 commits into
klaalo:masterfrom
paolobiavati:master
Open

Some good fix and changes in UploadServlet#1
paolobiavati wants to merge 3 commits into
klaalo:masterfrom
paolobiavati:master

Conversation

Copy link
Copy Markdown

Improved java UploadServlet demo that work with file upload

1) init() method: 
I fixed a bug (?) in the init() to the fileUploadPath  initialization.
In my localhost execution the item.write(file); in doPost method throwed an exception.
Now with the correct realPath it's ok.

2) doGet() method
In the doGet method I add the feature to list all the uploaded files, already uploaded in the uploadedFolder.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL