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.

Featured Replies

  • Newbies

Hi,

I am trying to add an upload field to my website so people can upload files. For some reason it is not upload into the container on filemaker database. Any help will be appreciated. Thank you in advance.

Here is what I have now:

form.php












upload.php



$create = new FX("129.0.0.1","80");                   

$create->SetDBData("upload.fp7", "Form"); 

$create->SetDBPassword('','Admin');

$create->AddDBParam('file1',$_POST[file1]);

$createResult=$create->FMNew();

?>

is your odbc, and web sharing turned on?

  • Author
  • Newbies

The ODBC is on. But the only problem I am having is to post the file into the database field(container) which is not doing. Any idea what step I need to take in order to go into the field. Any help will be appreciated and thanks in advance.

upload.php


$create = new FX("129.0.0.1","80");                   

$create->SetDBData("upload.fp7", "Form"); 

$create->SetDBPassword('','Admin');



$target_path = "uploads/";

$target_path = $target_path . basename( $_FILES['uploadedfile']['name']); 



if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {

    echo "The file ".  basename( $_FILES['uploadedfile']['name']). 

    " has been uploaded";

} else{

    echo "Please try again!";

}



$create->AddDBParam('uploadedfile',$_POST[uploadedfile]);

$create->AddDBParam('Name',$_POST[Name]);

$createResult=$create->FMNew();

?>

Edited by Guest

  • 2 months later...
  • Newbies

Hi Univ,

Did you ever manager to solve this?

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.