Background
- Hosting companies impose size limits on the data that can be included in a POST method
- Some are set as low as 1MB
- Media files over 700K are likely to cause the total body of the POST to exceed the limits
- Generally, these limits are higher for multipart forms, where the files are sent in separate blocks of data
Requirement
- Use the multipart form method of passing media file attachments to the server
Solution
- Implement capability to send and receive media files using a multipart form
- Client uses [class OIK_clone_post_file]
- Server detects the media file by accessing $_FILES