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 Quote 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. Quote Link to comment Share on other sites More sharing options...
NotionCommotion Posted June 5, 2019 Author Share Posted June 5, 2019 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.