Move resize on upload to base method ArtefactTypeFile::sav e_uploaded_file

Bug #1032455 reported by Alan McNatty
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Triaged
Wishlist
Unassigned

Bug Description

Bug #717184 implements a very cool new feature whereby images can be automatically resized on upload (if the user enables the config setting).

This functionality has been implemented in the view and not the model. That is the resize is performed in the function pieform_element_filebrowser_upload) and not in the base file artefact class (i.e. ArtefactTypeFile::save_uploaded_file method).

If a user has enabled image resizing then ArtefactTypeFile::save_uploaded_file should resize the image on save automatically. The biggest culprit to uploading oversized images may be mobile devices (as the mobile user often lacks the control to resize the content on the device)

It woul dbe great to move the resize functionality to the ArtefactTypeFile::save_uploaded_file method.

Changed in mahara:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.