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.

Can not Insert a "Picture", but I can insert a "File".

Featured Replies

Hello,

I am stuck. I have searched high and low prior to coming here for help.

I have a script that works on a table/layout called "document". It inserts either a "Picture" or a "File" depending upon what the user selects via a dialogue prompt. The picture or file is being saved to external storage and I can verify that these inserted files exist in storage by viewing the external storage file system. So far, so good.

I duplicated this script and modified it so it could work for another table/layout called "file_extension_type". With this modified script, I can insert a "file" -  but not a "picture".

When using script debugger to troubleshoot - I do receive an error message when trying to insert a "Picture", but not when I insert a "File". The error message is: "Last error: [852] Cannot write a file to the external storage"

I am attaching screenshots of:

  • Insert Picture or File script for Document layout (seems to work fine);
  • Insert Picture or File script for File Extension Type layout (does NOT work, the problem script);
  • Script Debugger Error Message when running problem script;
  • Data Viewer screenshot when running the problem script;
  • External Storage File System (showing files are being written to storage for BOTH scripts - except "picture" type when running problem script.

I suspect both scripts are not constructed properly, but one is working and the other not. My use of go to "object" and go to "field" may be redundant or improper in sequence.

I do NOT suspect external storage permission problems - as I am able to write files to the location (except "Picture" type files for the "File Extension Type" script.

Any help on this is appreciated.

 

01_insert__document_layout.png

02_insert__file_extension_type_layout.png

03_error_message.png

04_data_viewer.png

05_external_storage_file_system.png

Edited by dmontano
Sentence not applicable.

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.