Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-83182

Dropbox Files "Link To The File" does not work for JPG files

XMLWordPrintable

    • MOODLE_405_STABLE
    • MOODLE_405_STABLE
    • MDL-83182-main
    • Hide

      Test Pre-requisites

      • The user has private files.
      • The repository File system, Dropbox and Server files are enabled and visible. If using DropBox set the cache limit to 1

      Setup Dropbox account

      • Apply for a free/trial account
      • Follow instructions here: https://docs.moodle.org/27/en/Dropbox_repository
        • Click the "Dropbox Developers" link to go to https://www.dropbox.com/developers/apps and sign in.
        • Click on "Create an app" and select "Dropbox API app":
          • Scoped access
          • Full dropbox
        • Make sure your moodle is in https (set the wwwroot to an https protocol and setup the server accordingly, even self signed certificates will work at this stage because the only thing blocking is the actual use of https in the redirect url)
        • Add in the Oauth2 section the redirect url (https://<yoursite>/admin/oauth2callback.php)
        • In permission check:
          • account_info.read (should be checked)
          • files.metadata.read (should be checked)
          • files.content.read
          • sharing.write
          • sharing.read
      • In your Moodle:
        • Add a custom Oauth2 service: (<yoursite>/admin/tool/oauth2/issuers.php)
        • Name it "Dropbox service"
        • Copy the client ID and secret in the related fields
        • Set "Service base URL" to https://www.dropbox.com/oauth2/authorize
        • Set "This service will be used" as "Internal service only"
      • Then:
        • Go to Site Admin/ Repositories / Manage repositories
        • Enable the Dropbox repository:
          • OAuth2 service to your newly Oauth2 service created (Dropbox service)
          • Cache limit 1

      Testing

      1. Log in as admin
      2. Navigate to your Private Files area.
      3. Add a new file, selecting Dropbox as the repository. Select a jpg file and choose the option "Link to the file".
      4. Once it is added, VERIFY you will see the arrow icon, indicating it has been linked.
      5. Click the "Save changes" button
      6.  VERIFY the arrow icon is still there.
      Show
      Test Pre-requisites The user has private files. The repository File system, Dropbox and Server files are enabled and visible. If using DropBox set the cache limit to 1 Setup Dropbox account Apply for a free/trial account Follow instructions here:  https://docs.moodle.org/27/en/Dropbox_repository Click the "Dropbox Developers" link to go to  https://www.dropbox.com/developers/apps  and sign in. Click on "Create an app" and select "Dropbox API app": Scoped access Full dropbox Make sure your moodle is in https (set the wwwroot to an https protocol and setup the server accordingly, even self signed certificates will work at this stage because the only thing blocking is the actual use of https in the redirect url) Add in the Oauth2 section the redirect url (https://<yoursite>/admin/oauth2callback.php) In permission check: account_info.read (should be checked) files.metadata.read (should be checked) files.content.read sharing.write sharing.read In your Moodle: Add a custom Oauth2 service: (<yoursite>/admin/tool/oauth2/issuers.php) Name it "Dropbox service" Copy the client ID and secret in the related fields Set "Service base URL" to  https://www.dropbox.com/oauth2/authorize Set "This service will be used" as "Internal service only" Then: Go to Site Admin/ Repositories / Manage repositories Enable the Dropbox repository: OAuth2 service to your newly Oauth2 service created (Dropbox service) Cache limit 1 Testing Log in as admin Navigate to your Private Files area. Add a new file, selecting Dropbox as the repository. Select a jpg file and choose the option "Link to the file". Once it is added, VERIFY you will see the arrow icon, indicating it has been linked. Click the "Save changes" button   VERIFY the arrow icon is still there.
    • 2
    • Team Hedgehog 2024 Sprint 3.2, Team Hedgehog 2024 Sprint 3.3

      When adding files to a users Private Files area from their Dropbox account, there is the option to "Make a copy of the file" or "Link to the file". The "Link to the file" option does not seem to work for .jpg files. It works fine for .png and .pdf, for example.

      Steps to replicate

      1. Set up a Dropbox app and your Moodle site using the "Setup Dropbox account" instructions in MDLQA-19014
      2. Upload some jpg files to Dropbox, along with any other file types.
      3. In your Moodle site, log in and go to your Private Files area.
      4. Add a new file, selecting Dropbox as the repository. Select a jpg file and choose the option "Link to the file".
      5. Once it is added, you will see the arrow icon, indicating it has been linked. However, after you click "Save changes", that arrow disappears.
      6. Follow step 4 for a different file type. This time, after you click "Save changes" the arrow icon is still there and it is correctly linked to the Dropbox file.

            meirza.arson@moodle.com Meirza
            kevin.percy@moodle.com Kevin Percy
            Stevani Andolo Stevani Andolo
            Huong Nguyen Huong Nguyen
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours, 43 minutes
                1d 2h 43m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.