Jump to content
Server Maintenance This Week. ×

Upload multiple files


This topic is 4746 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • 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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 4746 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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