Hi everyone,
I’m working on a ScriptCase application where users need to upload travel documents (PDFs, images, etc.) via a form. The files should be:
- Uploaded to a SharePoint Online folder (via REST API).
- File references (URLs/metadata) stored in a MySQL database for tracking.
What I’ve Done So Far
- Created a SharePoint “Travel Files” folder with proper permissions.
- Registered an Azure AD app with
Sites.ReadWrite.All
permissions. - Set up a MySQL table to store file metadata (e.g.,
file_name
,sharepoint_url
,uploaded_by
).
Where I Need Help
- ScriptCase Implementation:
- How to properly integrate the SharePoint REST API upload in ScriptCase’s PHP code (using
curl
). - Best way to handle authentication (Azure AD tokens) securely.
- Database Design:
- Should I store the SharePoint file URL, ID, or another reference?
- Any recommended schema optimizations?