Marcel Epp Posted February 12, 2016 Share Posted February 12, 2016 Hi, i'm trying to put the jquery filer modul in a processwire site. http://filer.grandesign.md/ Has anyone done something similar? I get stuck with the upload. It says sucsess but the files won't be uploaded. Link to comment Share on other sites More sharing options...
MatthewSchenker Posted February 12, 2016 Share Posted February 12, 2016 Greetings Congomonster, This will work! You need to incorporate this plugin (or one like it), into your site's existing code for handling file uploads. So you first build the form to handle file uploads, then add the plugin to target the file-upload field. Take a look at these discussions on file-uploads in ProcessWire forms: https://processwire.com/talk/topic/3105-create-pages-with-file-upload-field-via-api/ https://gist.github.com/somatonic/5236008 Thanks, Matthew 2 Link to comment Share on other sites More sharing options...
Marcel Epp Posted February 13, 2016 Author Share Posted February 13, 2016 Hello Matthew, thanks for your answer. i have tried your suggestion https://processwire.com/talk/topic/3105-create-pages-with-file-upload-field-via-api/ But for now i can't get it to work. It always says that my file upload was not sucessfull. Even when i didn't choose any file. Maybe i am doing something wrong. Link to comment Share on other sites More sharing options...
MatthewSchenker Posted February 14, 2016 Share Posted February 14, 2016 Greetings, File uploads are a tricky business. This is not about ProcessWire -- it's just the nature of the web. Everythng needs to be just right for the files to end up in the proper place. Here's a quick checklist of obvious reasons you could encounter for file uploads to not work, ordered roughly by likelihood: 1. Did you create the temp dirctory to store the files during processing? 2. In the ProcessWire back-end, did you set the file field to accept the right kind/number of files? 3. In your code, did you first run an initial $page->save() before doing final file-upload steps? In other words, your page should be saved (at least) two times. 4. Did you set your form to be ready for the proper enctype? 5. Did you set file-upload fields to accept multiple files (if doing this)? If none of those fit, follow up here! Thanks, Matthew Link to comment Share on other sites More sharing options...
Marcel Epp Posted February 15, 2016 Author Share Posted February 15, 2016 Greetings Matthew, thank you for your help. i got the basics done. I now have a form where i can upload one file and this file got saved into a page. How can i hide this pages by default (published and hide)? And how can i store more than one file? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now