Feature #149
Add support for photos
| Status: | Assigned | Start: | 21/02/2012 | ||
|---|---|---|---|---|---|
| Priority: | Normal | Due date: | |||
| Assigned to: | % Done: | 50% |
|||
| Category: | WUI | Spent time: | - | ||
| Target version: | 2.0 |
Description
We need a component to display users photos.
The visualization would... display the photo.
The modification would allow the user to upload a new photo.
For the moment, LDAP photos (attribute jpegPhoto) are not in the scope. The application should be parametrized with a directory where to store/load the photos. Ideally an upload limit should be settable.
The photos are identified by the uid of the user.
Associated revisions
Move title in the correct div to display it in the dialog title bar (references #149)
A <div> cannot be in a <a> (references #149)
Add enableZoom parameter, default to false (references #149)
Improve HTML and CSS code for PhotoEditor and PhotoDisplayer (references #149)
Possibility to set a disclaimer in the message catalog (references #149)
UploadException should not be catched in component but in the page (references #149)
Remove unused logger (references #149)
History
Updated by Clément OUDOT 3 months ago
Another cool feature would be to automatically resize the photo to a given width or height.
Updated by Sébastien Levesque 3 months ago
we may be need to ckeck the uploaded file.
we want jpeg photos. possible control are
- mimetype
- extension jpg
Updated by Clément OUDOT 2 months ago
The size of the displayed photo should be a component parameter. For now, it is hard coded in the template:
<t:jquery.dialogajaxlink t:dialog="dialogZoom" t:zone="myZone">
<img src="${picUrl}" style="max-width:50px;max-height:50px" title="${message:components.photodisplayer.zoom}"/>
</t:jquery.dialogajaxlink>
Updated by Sébastien Levesque 2 months ago
r305 The size of the displayed photo is now fixed in css page
Updated by Clément OUDOT 2 months ago
- Category changed from Sample to WUI
- Assigned to changed from Sébastien Levesque to Clément OUDOT
- % Done changed from 0 to 50
Thanks,
I will now work on the global CSS for the component.
Updated by Clément OUDOT 2 months ago
- Assigned to changed from Clément OUDOT to Sébastien Levesque
Updated by Raphael Ouazana 2 months ago
We should at least verify the photo is really a JPEG file before saving it.
If it is possible, an upload size limit should be settable.
Updated by Clément OUDOT 12 days ago
Raphael Ouazana wrote:
If it is possible, an upload size limit should be settable.
Size limit should be configured in AppModule as Symbol (see http://tapestry.apache.org/uploading-files.html). The upload exception must be catched in the page (not in the component, see r318)