Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

best way to upload file to a container via the web


mjs315

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

Recommended Posts

  • Newbies

I'm looking for information on what others think is the best way for a person to upload a file via the web to a container field in my fmp database. I have server 7 advanced, so IWP, XSLT, and XML are all posabilities.

Any insight would be great.

Thanks

Link to comment
Share on other sites

p. 21 of the FMSA CWP Guide is pretty clear: "Web users can’t modify or add to the contents of container fields". So you have to abandon this idea.

However, what you can do, is to upload a file to the web root folder or a sub folder of your web root, and reference to it by a plain text field (or a calculation field). And then with an XSLT or PHP page just generate a dynamic page that offers the file path in a link or as embedded object.

For uploading, you can use e.g. the Java Upload Bean provided by JavaZoom http://www.javazoom.net/jzservlets/uploadbean/uploadbean.html or PHP (which for sure has a library for that, but I can't tell you because I don't know PHP).

I was not able to bring the UploadBean to running within the Tomcat environment that is provided by FMSA, although the .war archive unpacked after I had installed it within the correct folder. One problem is that the WPE installation remaps the URL paths to its servlets; one probably has to add further remappings for the UploadBean servlet in the configuration files of the WPE; which I did not dare.

However, within an original Tomcat installation I was able to run it. This means that one has to run two instances of Tomcat on the server.

Link to comment
Share on other sites

  • 4 weeks later...

Here is a free tutorial tht we wrote with example files that show how you can upload files to your web server with php. PHP is platform agnostic...so it doesn't care if you are on a mac or a pc. We are using IWP in this example and uploading files with IWP.

http://www.fmwebschool.com/resources/upload.zip

http://www.fmwebschool.com/resources/upload.sit

Link to comment
Share on other sites

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