NotionCommotion Posted June 5, 2019 Share Posted June 5, 2019 For uploading files, I use a class which accepts an uploaded file array, validates that it has a name, tmp_name, type, error, and size key, validates that it doesn't have errors and meets various requirements, and moves it to the applicable folder. For another applicable, I will be generating the file directly on the server, however, wish to use this same class. Will I need to manually create this "file" array, or is there a native PHP function to accept a path and automatically do it? Thanks Link to comment Share on other sites More sharing options...
kicken Posted June 5, 2019 Share Posted June 5, 2019 If you need the information in that format then you'll have to generate it yourself. There's no existing function that does so. Link to comment Share on other sites More sharing options...
NotionCommotion Posted June 5, 2019 Author Share Posted June 5, 2019 Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.