-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add functionality for uploading profile picture #93
Add functionality for uploading profile picture #93
Conversation
|
||
/** | ||
* Default constructor for a UploadCommand object | ||
* @param targetIndex Index to be deleted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this "deleted" because the target will be replaced?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, typo on my end. Will change to be "uploaded"
//adapted from https://stackoverflow.com/questions/19302029/filter-file-types-with-jfilechooser | ||
// fileChooser.setFileFilter(new FileFilter() { | ||
// | ||
// public String getDescription() { | ||
// return "PNG Images (*.png)"; | ||
// } | ||
// | ||
// public boolean accept(File f) { | ||
// if (f.isDirectory()) { | ||
// return true; | ||
// } else { | ||
// String filename = f.getName().toLowerCase(); | ||
// return filename.endsWith(".png"); | ||
// } | ||
// } | ||
// }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need this part? If not could delete it since its commented out.
LGTM, I will take over from here. |
30df9c1
into
AY2425S1-CS2103T-F14b-4:master
WIP
Closes #86