Modify

Ticket #862 (closed task: fixed)

Opened 6 years ago

Last modified 6 years ago

Add EBox::Types::File

Reported by: ejhernandez@… Owned by: ejhernandez@…
Milestone: 0.12 Component: base
Severity: major Keywords: file types MVC
Cc:

Description

New File type is created in order to do the following:

  • In edition mode
    1. As editable: you can upload a file to overwrite uploaded content
    2. As non editable: you can see the file path if needed

  • In viewer mode, the same as edition mode not editable. Additionaly, if you set an attribute, namely allowDownload may allow the user to perform the download of the selected file

Attachments

Change History

comment:1 Changed 6 years ago by ejhernandez@…

  • Summary changed from Add `EBox::Types::File` to Add EBox::Types::File

comment:2 Changed 6 years ago by ejhernandez@…

(In [8629]) * Added EBox.FileUpload? JS class to submit files without reloading the page using Iframe technique

  • Added setDone function when an upload has finished
  • Enhanced documentation for upload method on CGI::Base
  • Added file setter template for EBox::Types::File class

All refs #862

comment:3 Changed 6 years ago by ejhernandez@…

(In [8630]) Better exception message refs #862

comment:4 Changed 6 years ago by ejhernandez@…

(In [8631]) Added CGI uploader to store a file input passed as a single parameter without a name refs #862

comment:5 Changed 6 years ago by ejhernandez@…

(In [8632]) First EBox::Types::File implementation. Some dead code removed. It lacks of transactional behaviour refs #862

comment:6 Changed 6 years ago by ejhernandez@…

(In [8633]) Transactional EBox::Types::File and the file name is fixed by the developer setting the filePath attribute refs #862

comment:7 Changed 6 years ago by ejhernandez@…

(In [8638]) Added Downloader CGI to download a file refs #862

comment:8 Changed 6 years ago by ejhernandez@…

(In [8639]) Added dummy identifier to a row and added some functions to File type to make download work refs #862

comment:9 Changed 6 years ago by ejhernandez@…

(In [8640]) Added file viewer and showFileWhenEditing property taken into account refs #862

comment:10 Changed 6 years ago by ejhernandez@…

(In [8641]) Improving CGI mapping to allow downloads from a single file with URLs like this: /ebox/<moduleName>/Controller/<modelName><index/Download/<id>/<fieldName> refs #862

comment:11 Changed 6 years ago by ejhernandez@…

  • hours changed from 0 to 22.5
  • Status changed from new to closed
  • Resolution set to fixed
  • totalhours changed from 0.0 to 22.5
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.