Jump to content
Server Maintenance This Week. ×

export container contents of found set


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

Recommended Posts

Hi, new to supercontainer. I have a dataset with over a 100,000 images in a Filemaker container (v16 on FMServer). I am trying to find a method that allows an individual to download images from a found set all at once. I've been able to get a script working within Webdirect but it seems to require selecting a button to download images one at a time which is not convenient to say the least if you have 100 or so in a found set. 

Does supercontainer allow this sort of download?

Thanks.

Link to comment
Share on other sites

If you have Webdirect running, you might also be able to host a PHP file and have it do some work as well. I have some sample files that show how to zip container data and serve it to the end user as one file.

You can download the sample from my github repo here:

https://github.com/SoliantMike/FM-WebDirect_Zip

Mike

Link to comment
Share on other sites

Hi bushidobro,

While you could def do this with SuperContainer companion plugin, it would definitely take some set up as there is no functionality that would do this explicitly. The images would have to be hosted by SuperContainer first then have some kind of field for the record that uniquely identifies the image so that when you looped through the records you could change the URL where the image was hosted so SuperContainer would know what to download. For instance say you have a found set of 5 images with identifying values of 1-5 (super simple). To set this up you would upload those 5 images at http://SERVERIPORHOSTNAME/SuperContainer/Files/Images/1, http://SERVERIPORHOSTNAME/SuperContainer/Files/Images/2, http://SERVERIPORHOSTNAME/SuperContainer/Files/Images/3, http://SERVERIPORHOSTNAME/SuperContainer/Files/Images/4, http://SERVERIPORHOSTNAME/SuperContainer/Files/Images/5. In your script your loop would iterate through the found set and call the function SCDownload ("/Images/"&Images::ImageIdentifier; "LOCATIONWHEREYOUWANTTOSAVE") for each record in the found set.  Since you have 100,000 images, I would also recommend setting of a script that will automate the upload for you as well. The function SCSetContainer uploads a file from a container field to the specified URL on SuperContainer. 

Hope that helps!

Link to comment
Share on other sites

This topic is 2362 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.