← Back to team overview

mahara-contributors team mailing list archive

[Bug 1262928] A change has been merged

 

Reviewed:  https://reviews.mahara.org/3493
Committed: http://gitorious.org/mahara/mahara/commit/b04999749325ba30ea8322d70e8863a4a2d90aa2
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch:    master

commit b04999749325ba30ea8322d70e8863a4a2d90aa2
Author: Nigel Cunningham <nigelc@xxxxxxxxxxxxxxx>
Date:   Thu Jul 17 16:03:44 2014 +1000

(Bug1262928) Add support for filtering upload file types.

Add support for having a CSV (or other file type) filter
in the File control generated by Pieforms, and use it for
the forms for uploading users, groups and group memberships.

Note that support for the accept attribute in browsers is
patchy. This will have no effect in the Chromium and Firefox
versions current at the time of preparation, but has been
successfully tested in Chrome.

Change-Id: Ib5cf42be4e054f31086e9db9cda15473e86df7a3
Signed-off-by: Nigel Cunningham <nigelc@xxxxxxxxxxxxxxx>

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1262928

Title:
  Add users by CSV - enforce browse for file button only accepts csv
  files

Status in Mahara ePortfolio:
  Fix Committed

Bug description:
  As an admin I want to add some users by csv - When I CLICK the choose
  file button I see all of my file types in my newly opened window.
  What would be nice is for the user to only see and be allowed to load
  csv files.  I had thought of this when I was trying to upload a csv
  file using my ipad which only gave me the option to upload an image or
  video.

  I think this is an easy fix by using the ACCEPT attribute for the
  input tag for example <input type="file" accept="text/csv" />

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1262928/+subscriptions


References