Skip to content

parimalvfx/ImageHoster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageHoster

Image hosting website similar to Imgur

Part A - Fixing Issues

User signup bugs

  • Check added in UserController class for username validation at the time of registration. Also updated signup.html file with class for flashing error. If username is not available then error is added which will be flashed promptly on registration page.

    • Error flashed if username is taken by another user:

      Error flashed on registration page if username is not available

Image upload issues

  • Updated ImageService, ImageServiceImpl, ImageManager and ImageController classes to get images by id and to show images by title and id. Also updated home.html file with title + id link.

    • Images can have same title:

      Images now can have same title

    Above three images with title abc resolves to following URLs:

    http://localhost:8080/images/abc/3
    http://localhost:8080/images/abc/4
    http://localhost:8080/images/abc/5
    

Part B - Implement a new feature

Username and password validity

  • Check added for validity and length of the username and password fields upon user signup.

    • Username has been registered:

      Username has been registered

    • Username needs to be 6 characters or longer:

      Username needs to be 6 characters or longer

    • Password needs to be 6 characters or longer:

      Password needs to be 6 characters or longer

About

Image hosting website similar to Imgur.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published