User profile fields: File upload

profilefield_file
Maintained by Picture of Shamim Rezaie Shamim Rezaie
A file upload profile field for Moodle
178 sites
194 downloads
22 fans
Moodle 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4

This is a file upload profile field plugin for Moodle.

Using this plugin, you can define new profile fields to ask users to upload some files through them.

If this plugin makes your life easier you can treat me a coffee smile

Buy Me a Coffee at ko-fi.com

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

Picture of Shamim Rezaie
Shamim Rezaie (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Patrick Thibaudeau
    Mon, 30 Nov 2015, 10:41 PM
    First, an excellent plugin. However, please note that there is a small error in lib.php line 49. $this->userid should be $user->id. Otherwise, files cannot be displayed/downloaded.

    Thank you for this create contribution.
  • Picture of Shamim Rezaie
    Tue, 1 Dec 2015, 10:59 AM
    Hi Patrick
    Are you sure? $user is not defined in that context!
  • Picture of Santiago Rivera Botero
    Fri, 4 Mar 2016, 4:29 AM
    Hi Shamin,

    I have dowloaded and installed the plugin in the following site (http://cursos.capacitacionlaf.com/login/signup.php). however, moodle is not displaying the file field.
    Could you please help me?
  • Picture of Shamim Rezaie
    Sun, 6 Mar 2016, 10:28 PM
    Hi Santiago,
    I hope that you don't want to display a file upload field on the signup page as Moodle doesn't allow not-logged-in users to upload any file.
  • Picture of Santiago Rivera Botero
    Mon, 7 Mar 2016, 10:40 AM
    Hi

    Yes I need to display the upload field on the sign up page.

    What can I do to display it?
  • Picture of Eric Duplay
    Fri, 13 May 2016, 9:30 PM
    Hi Shamin,

    Thanks for the plugin.
    I'm currently testing the plugin with moodle localy installed.

    I created a new user and then upload a pdf file. I would like to know where this file is located? I searched for this file in my computer but couldn't find anything (except of course the file used for the upload).

    Plus, I wrote a short text in the field "description" to indicate what kind of file to upload which doesn't appear while logged in as a user. Is it an issue or quite normal?

    Thanks for any help.
  • Picture of Sergey Kinash
    Thu, 17 Nov 2016, 4:21 AM
    Hi Shamin,

    We are using File upload plugin and we are very grateful you.
    Each profile field has the parameter «Who is this field visible to?» When this parameter is «Not visible» or «Visible to everyone» all works well.

    If the «Who is this field visible to?» = «Visible to user», the student on his own profile page sees the field’s name and a link to the file in «User details». But when a student clicks on the file, an error occurs «Sorry, the requested file could not be found». Check this case, please.
    For administrators such error does not occur. We use moodle 3.1.3 and File upload rel.date 29/07/2016
  • Picture of Shamim Rezaie
    Thu, 17 Nov 2016, 9:03 AM
    Hi Sergey,
    Thank you for the report. I found the problem and will release a fix in a couple of days.
  • Picture of Shamim Rezaie
    Sun, 18 Dec 2016, 9:50 PM
    It took a bit more than a couple of days but it is fix now. A new version is available.
  • Picture of Sergey Kinash
    Mon, 19 Dec 2016, 2:24 PM
    Hi Shamim!
    Many thanks! Exectly today we had to start using your plugin for our students. All the best!
  • Picture of Paulius Adm
    Tue, 1 Aug 2017, 8:57 PM
    Hi Shamim,
    Thanks for the great plugin, but I thinks there is some bugs. Fields "Display on signup page?" and "Should the data be unique?" are inactive and I cannot change from "No" (by default) to "Yes". Or I do something incorectly?
  • Picture of Shamim Rezaie
    Tue, 1 Aug 2017, 9:13 PM
    Hi Paulius,
    This is an intended behaviour and not a bug.
    Moodle does not allow displaying the file upload dialogue to a not logged in user for security purposes.
    Therefore, this plugin cannot display the upload field on the sign-up page or Moodle would throw an error.
  • Picture of Kristin Merritt
    Wed, 13 Dec 2017, 5:24 AM
    Shamim,
    Is there any way to define by role who can see this profile field?
  • Picture of Shamim Rezaie
    Wed, 13 Dec 2017, 9:35 PM
    Hi Kirstin,
    As it is standard with any profile field you add to Moodle, you have the 3 options of making the field invisible (only admins can see), visible to the user (the user him/herself and admins) or visible to everyone.

    You cannot set the visibility based on role.
Please login to post comments