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.

Upload multiple files

Featured Replies

  • Newbies

I'm trying to upload multiple files with SC but i can't get it done.

I'm using the code below as described in the documentation.

"http://yourServer.com:8020/SuperContainer/Files/Asset/" & myTable::ID & "/1"

"http://yourServer.com:8020/SuperContainer/Files/Asset/" & myTable::ID & "/2"

"http://yourServer.com:8020/SuperContainer/Files/Asset/" & myTable::ID & "/3"

But FM says it needs an operator

When i use the code below to upload just one file it works ok.

"http://yourServer.com:8020/SuperContainer/Files/Asset/" & myTable::ID

Does anyone know what my problem might be?

TIA

Vincent.

It sounds like there is an extra character in there which is preventing filemaker from recognizing the calculation. Try deleting the calculation and re-typing it, as there may be some character you're missing or have an extra one of, such as '' (two single quotes) instead of " (double-quotes) or a return character, if you copied it in from another field.

EDIT: OH! I think i see what's happening. Did you put all three of those URLs in a single web viewer? Each web viewer can only show one URL. You need to put three web viewers on your layout, and each web viewer should have one of those three URLS.

  • 3 months later...

It sounds like there is an extra character in there which is preventing filemaker from recognizing the calculation. Try deleting the calculation and re-typing it, as there may be some character you're missing or have an extra one of, such as '' (two single quotes) instead of " (double-quotes) or a return character, if you copied it in from another field.

EDIT: OH! I think i see what's happening. Did you put all three of those URLs in a single web viewer? Each web viewer can only show one URL. You need to put three web viewers on your layout, and each web viewer should have one of those three URLS.

Hello 360works Support,

I have just started to look at SuperContainer as a possible solution to providing upload capability to my database, but there has to be a way to upload multiple files other than a dedicated web viewer per upload. Is your description above the only way to do this? Do I have to move the file after it is uploaded to manage multiple uploads?

Thanks for your advice.

SuperContainer works like a regular container field in that you can only store one file per URL. If you are going to have multiple files attached to a record you would handle it the same way you would with a container field:

A) Make multiple URLs using the /1 /2 /3... method

B) Make a related table of documents with one URL per record, and a relationship back to your original record (this is what I would recommend)

You would probably want to display this using a portal on your layout and a single web viewer which would display the contents of the document record you had selected. Again, think about it just like you would a regular container field. Instead of adding a container to your table you add a URL calculation. Instead of adding a container field to your layout you add a web viewer.

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.