File upload

User profile fields ::: profilefield_file
Maintained by Shamim Rezaie
A file upload profile field for Moodle
Latest release:
557 sites
199 downloads
33 fans
Current versions available: 1

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

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

Comments RSS

Show comments
  • Larisa Sulek Vaz Guimarães
    Tue, Dec 1, 2020, 3:04 AM
    I tested it on version 3.9 and it worked. Very useful. Has the plugin been discontinued?
  • Shamim Rezaie
    Tue, Jan 19, 2021, 2:20 PM
    Hi Larisa,
    The plugin is not discontinued. However, maintaining plugins for new Moodle versions takes time. I recently updated some of my plugins, but I can only maintain a limited number of plugins for free. I will upgrade as soon as I have some funds to work on this.
  • Hoda Farazandeh
    Mon, Feb 8, 2021, 7:00 AM
    Hello Shamim,
    Thanks for your useful plugin.
    Can you please inform me if there is a way to download users' uploaded files in bulk?

    Regards
  • Darrel Tenter
    Wed, Jun 16, 2021, 10:59 PM
    Hello. We have this plugin installed on Moodle for Workplace 3.10. It's technically working. But I don't understand how the file is viewed. Our use case is for an image of the user's signature. However when viewing the user profile we simply get a link to the file.
    If I place the profile field on a Certificate template I just get text of the name of the file. Not the actual image on the certificate.
    Is what I'm trying to do possible with this plugin?
  • Shamim Rezaie
    Thu, Jun 17, 2021, 3:29 PM
    Hi Hoda,
    Unfortunately that's not possible as far as I know
  • Shamim Rezaie
    Thu, Jun 17, 2021, 3:34 PM
    Hi Darrel,
    None of the existing certificate elements can embed profile files. So You would need to have a new type of certificate element (a new plugin type to be developed) to be able to show profile files on your certificates.
  • Neil Rhule
    Fri, Aug 20, 2021, 12:18 PM
    Hi Shamim,

    Is there a reason why a file uploaded would disappear after two weeks? Thanks much.

    Neil
  • Jerry Lorenz
    Sat, Feb 3, 2024, 12:13 AM
    I have been using this plugin in version 3.9 and it has worked great. However, after upgrading to moodle 4.1.8 there is an issue. When you view a student profile you can see the related files that have been added previously. However if you edit the profile the upload area is not populated with the current files. That area is blank. If you cancel editing the profile the related files are listed again. If you add a file to be uploaded and save the profile it effectively removes all the previously uploaded files and now only displays the most recent uploaded files.

    So the work around we have been using is that you have to first download all current files and then add them back into the fileupload along with any new files. Is there a fix for this issue?

    Thanks
    Jerry
  • Shamim Rezaie
    Mon, Feb 5, 2024, 1:40 AM
    Hi Jerry,
    I'm happy that you found this plugin helpful. I have yet to test the file upload plugin with Moodle 4, and some parts of the code probably need an update. I can only maintain a limited number of plugins for free, and unfortunately, I could not supply any funds for this plugin ($8 in 8 years, including the recently received $5). I will look into this plugin when I find some spare time.
  • Jerry Lorenz
    Wed, Feb 7, 2024, 6:50 AM
    I understand It was I that bought you the $5 coffee but I know how much time all this can take. I am trying to look into it myself. I have about 3000 documents linked in this way and the staff will have to be patent. I will let you know if I find a solution. I have not had much experience with the filemanager but this will be an opportunity to learn I hope. Enjoy the coffee!
  • Jerry Lorenz
    Sat, Feb 17, 2024, 7:20 AM
    After upgrading from Moodle 3.9 to 4.1 the File upload plugin was not working correctly. It would display files that had been uploaded in previous versions of Moodle, But in Moodle 4.1 it would not show the previous uploaded files in the filemanager when editing the student profile. If you canceled editing the profile, the old files would still be available. However if you saved the profile all previous files associated with this profile would be removed. The work around was to download all associated files and then upload them again along with any additional files.

    I was able to fix this in the code. In the Moodle directory file user/profile/field/file/field.class.php where this plugin installs. On line 105

    $this->data = $draftitemid;

    Replaced with:

    $this->field->defaultdata = $draftitemid;

    From what I could figure out the location of the defaultdata for the field had changed and when the filemanager loaded, it no longer looked in the old location.
    hope this helps someone out there. I did not know much about the file manager but I know a lot more now.

  • Andrea Tullo
    Fri, Mar 15, 2024, 7:43 PM
    Ehy Jerry thank you so much for posting the fix, we were having same issue with this plugin, you are a lifesaver
    we're currently using the plugin with said fix with moodle 4.3.3 and with 4.2.6, it works as intended
  • Shamim Rezaie
    Mon, Apr 8, 2024, 2:41 AM
    A new version of this plugin has been released. It is compatible with all the latest Moodle versions.
  • Jonathan Cook
    Fri, Apr 12, 2024, 8:08 PM
    Thank you for all of your work in making this compatible with the latest version of Moodle Shamim! Your efforts are very much appreciated.
  • Fabio Finocchiaro
    Sun, Apr 14, 2024, 6:47 PM
    when I create a report it generates an error
1 2 3
Please login to post comments