Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactive Figure - Upload/ Delete file process ties into page information validation #90

Open
3 of 5 tasks
robbiecarroll opened this issue Feb 19, 2025 · 0 comments
Open
3 of 5 tasks
Assignees

Comments

@robbiecarroll
Copy link
Contributor

robbiecarroll commented Feb 19, 2025

What can be improved? What is missing?

We need to make sure the upload field and other fields tie into the figure page information (field) validation script created for all (most) of the fields in class-webcr-figure.php.

For "wp-content/plugins/webcr/admin/exopite-simple-options/fields/upload.php", which controls the file uploads for interactive figures, and its implementation into the admin side of the plugin via "wp-content/plugins/webcr/includes/class-webcr-figure.php".

  • figure page information (field) validation script needs to be applied to all fields (class-webcr-figure.php).

  • function deleteUploadedFile(): line 227 (Subject to chnage) location.reload(); // Refresh the page to reflect deletion)

  • set the folder permissions for wp-content/data as below:
    Owner (WordPress/PHP process): Read (4), Write (2), Execute (1) = 7
    Group (Other WordPress Users): Read (4), Execute (1) = 5
    Others (Public/Visitors): Read (4) = 4
    Combining these numbers, we get 754

  • jsonValidation and csvtojson conversion need to match the file that Jai sent me (upload.php).

  • example scripts in the upload box need to be updated to reflect correct json formats as well (upload.php).

@robbiecarroll robbiecarroll self-assigned this Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant