This board is the new home for david63's extensions.

All of the extensions hosted here will need to be treated as a new install as there is no migration from the original ones to these, and furthermore, no support will be given to migrating to any of these extensions from previous versions.


Due to the selfishness of certain board members it has become necessary to apply a limit of how many downloads each member can make before making a donation. Once a donation has been made then you will have unlimited downloads.

[3.3.0] Dropbox Upload

Fully working extensions
User avatar
devspace
Owner
Owner
Posts: 280
Joined: October 2022

[3.3.0] Dropbox Upload

#1

Post by devspace »

Dropbox Upload for Auto db Backup:

Extends autobackup to allow the copying of the backup file to your Dropbox account.

Compatibility:

Image Image

Image

Notes:
  • If you are using any other version of this extension then it must be Disabled /Delete data and the original files deleted before installing this version - you will loose all settings.
  • You must have the Auto db Backup extension installed in order to install this extension.
  • You will need a Dropbox account to be able to use this feature.
Features:
  • Set the folder structure on your Dropbox account.
  • Set the frequency of the uploads.
Language(s):
  • en
Version:
  • 3.3.0
Installation:
  • Download the latest release and unzip it.
  • Upload the unzipped files to [board root]/ext/devspace/dropboxupload and enable it in the ACP
Configuration:
  • ACP
  • Maintenance
  • Auto database backup
  • Dropbox settings
Extension Download:

User avatar
devspace
Owner
Owner
Posts: 280
Joined: October 2022

[3.3.0] Dropbox Upload

#2

Post by devspace »

Announcements:

proviter
Member
Member
Posts: 7
Joined: August 2023

Re: [3.3.0] Dropbox Upload

#3

Post by proviter »

Hello!
This is Ru language pack.
You do not have the required permissions to view the files attached to this post.

proviter
Member
Member
Posts: 7
Joined: August 2023

Re: [3.3.0] Dropbox Upload

#4

Post by proviter »

I noticed the difference in token.
Dropbox generates a Access token 143 symbols. But in the settings, in the token field, only 100 symbols are placed in the token field.
Changes in the dropbox?

User avatar
devspace
Owner
Owner
Posts: 280
Joined: October 2022

Re: [3.3.0] Dropbox Upload

#5

Post by devspace »

proviter wrote: 02 Sep 2023, 10:09
I noticed the difference in token.
Dropbox generates a Access token 143 symbols. But in the settings, in the token field, only 100 symbols are placed in the token field.
Changes in the dropbox?
Possibly - will check it.

User avatar
devspace
Owner
Owner
Posts: 280
Joined: October 2022

Re: [3.3.0] Dropbox Upload

#6

Post by devspace »

proviter wrote: 02 Sep 2023, 10:09
I noticed the difference in token.
Dropbox generates a Access token 143 symbols. But in the settings, in the token field, only 100 symbols are placed in the token field.
Changes in the dropbox?
It is not a major issue - it is just a limit in the template file

Open ext\devspace\dropboxupload\adm\style\dropboxupload_manage.html

Find

Code: Select all

<input class="textbox" name="dropbox_token" type="text" id="dropbox_token" value="{{ DROPBOX_TOKEN }}" size="50" maxlength="100">
Replace with

Code: Select all

<input class="textbox" name="dropbox_token" type="text" id="dropbox_token" value="{{ DROPBOX_TOKEN }}" size="100" maxlength="255">

proviter
Member
Member
Posts: 7
Joined: August 2023

Re: [3.3.0] Dropbox Upload

#7

Post by proviter »

devspace wrote:
It is not a major issue - it is just a limit in the template file
Thank you! ;)
I will deal with the Auto database backup, does not want to create a backup.

proviter
Member
Member
Posts: 7
Joined: August 2023

Re: [3.3.0] Dropbox Upload

#8

Post by proviter »

Hei!
I got a backup in a day from Auto database backup!
But now, I do not understand how the dropbox works.
When does it work? When creating a database?
And if there are several? What value should be set? 1,2.3?
What is this? What are the values of the values here?
And in the log of errors I have:
Anonymous 178.xxx.xx.4x
» {"error_summary": "expired_access_token/", "error": {".tag": "expired_access_token"}}
But the keys and token are true, I created them under this application.

exekutive
Member
Member
Posts: 15
Joined: June 2023

Re: [3.3.0] Dropbox Upload

#9

Post by exekutive »

upload is not working for me.

phpBB error log shows:

Code: Select all

Dropbox returned the error
» {"error_summary": "invalid_access_token/...", "error": {".tag": "invalid_access_token"}}
But I entered it correctly

exekutive
Member
Member
Posts: 15
Joined: June 2023

Re: [3.3.0] Dropbox Upload

#10

Post by exekutive »

I may have found the issue.

I enter the token
Example:

Code: Select all

sl.Bp1kXyOfUZcI-YKaQTY3pJRYXPlkZwXuIbFjeHwLN_9xSq6WbC3KnwBdlw7AABICvhMtvXjCaBGES7CSUVOU-PwKJuAiR_5-UwB8TTjcguy8AsYd3h6eGlgZynhfyJZWoAmf3wTNt9vE
save the settings.
When I open the plugin settings again later and check the token, it has not been shortened to:

Code: Select all

sl.Bp1kXyOfUZcI-YKaQTY3pJRYXPlkZwXuIbFjeHwLN_9xSq6WbC3KnwBdlw7AABICvhMtvXjCaBGES7CSUVOU-PwKJuAiR_5-U
This happened twice.

EDIT: Sorry, I just noticed work-around posted above. Forum does not allow me to delete my posts.
I changed the template file as described, but the token is still getting shortened.

exekutive
Member
Member
Posts: 15
Joined: June 2023

Re: [3.3.0] Dropbox Upload

#11

Post by exekutive »

I tried a new token and then checked the database, and sure enough... token is truncated to 100 chars.

I tried changing 'size' in template to 143 as well. But it doesn't matter what I put in the template. It's always truncated.
You do not have the required permissions to view the files attached to this post.

User avatar
devspace
Owner
Owner
Posts: 280
Joined: October 2022

Re: [3.3.0] Dropbox Upload

#12

Post by devspace »

That looks to me as if you have not changed the maxlength to 255 on that template field.

exekutive
Member
Member
Posts: 15
Joined: June 2023

Re: [3.3.0] Dropbox Upload

#13

Post by exekutive »

I definitely did
You do not have the required permissions to view the files attached to this post.

User avatar
devspace
Owner
Owner
Posts: 280
Joined: October 2022

Re: [3.3.0] Dropbox Upload

#14

Post by devspace »

Did you purge the cache after making the change?

exekutive
Member
Member
Posts: 15
Joined: June 2023

Re: [3.3.0] Dropbox Upload

#15

Post by exekutive »

Nope. I didn't even know that was a thing. Let me see if I can find where to do that ....

EDIT: ok I purged the cache (from the ACP>General tab), and now the token appears to be sticking. Next backup in an hour. Now I wait ...

exekutive
Member
Member
Posts: 15
Joined: June 2023

Re: [3.3.0] Dropbox Upload

#16

Post by exekutive »

it still doesn't work.
Screenshot 2023-11-17 at 02-24-10 Error log.png
You do not have the required permissions to view the files attached to this post.

User avatar
devspace
Owner
Owner
Posts: 280
Joined: October 2022

Re: [3.3.0] Dropbox Upload

#17

Post by devspace »

That error is nothing to do with the extension it is an error from Dropbox which, I believe, is to do with the access token not being correct for what you are doing.

exekutive
Member
Member
Posts: 15
Joined: June 2023

Re: [3.3.0] Dropbox Upload

#18

Post by exekutive »

Bingo!
I generated a new token and it works now.
Thanks so much for the assistance. Brilliant plugin.

exekutive
Member
Member
Posts: 15
Joined: June 2023

Re: [3.3.0] Dropbox Upload

#19

Post by exekutive »

The next scheduled upload failed .
The log says

Code: Select all

Dropbox returned the error
» {"error_summary": "expired_access_token/..", "error": {".tag": "expired_access_token"}}
I see no place to adjust expiry time of a token.
Do I have to generate a new one each time I want to backup?

exekutive
Member
Member
Posts: 15
Joined: June 2023

Re: [3.3.0] Dropbox Upload

#20

Post by exekutive »

so apparently these tokens are "short-lived" (about 4 hrs) hence why they are pre-fixed with "sl."
According to Dropbox documentation, apps are supposed to request permanent or "offline" tokens using the API.
Does this plugin do that?

User avatar
devspace
Owner
Owner
Posts: 280
Joined: October 2022

Re: [3.3.0] Dropbox Upload

#21

Post by devspace »

Did you follow the instructions at the bottom of the settings page?

exekutive
Member
Member
Posts: 15
Joined: June 2023

Re: [3.3.0] Dropbox Upload

#22

Post by exekutive »

The instructions don't exactly match what I see on Dropbox, but yes I followed them as closely as possible.
You do not have the required permissions to view the files attached to this post.


exekutive
Member
Member
Posts: 15
Joined: June 2023

Re: [3.3.0] Dropbox Upload

#24

Post by exekutive »

Any ideas?