Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Getting the size of a file ?

Featured Replies

I have a script that downloads a filemaker database from a container of an hosted database.

Since the file can be big, the download can take a few minutes on a slow connection.

I would like to display a progress indicator so the user can estimate the time it will take.

I currently only display a spinning animation but this does not indicate any progress.

I thought that maybe the solution would be to use the web viewer component with some javascript to regularly check the size of the downloaded file.

Anyone knows if it's possible and how to do it (on FM GO) ?

Edited by sfpx

  • 1 month later...
  • Author

I came to the conclusion that it's virtually impossible using export field contents as it seems to block the execution of ontimer scripts .

Is there another way to download a file while giving the user an idea of the download progress ?

P.S.

What I want to do is to download a fmp12 file and open it once it's downloaded.

 

  • Author

Thanks but I know how to get the size of the container.

What I want to know is the size of a file that is being downloaded on the iphone so I can display the progress of the operation and the approximative time remaining.

The file that will be downloaded will exceed 100MB which can take a while on a slow connection.

Right now I'm so desperate that I'm about to test the download speed by downloading a 5MB prior to the real download and display an approximative download time.

 

P.S.

I realize that my OP was pretty badly phrased and it was not very clear. The title did not help too. 

 

Edited by sfpx

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.