skovar Posted November 13, 2013 Share Posted November 13, 2013 Hello All, I just installed FormBuilder, and it's going great so far. Great time saver! I spent a couple of days doing a file upload form manually and was able to recreate it within minutes in FormBuilder. Quick question about the general file upload functionality in PW: When I was doing a file upload manually, I set the upload destination, and the file would upload there, but would also be in the assets/files area in a folder matching the entry ID. Now that I'm using FormBuilder, I stuck with the default upload area for FormBuilder, assets/cache/form-builder. I still get the same result though. The uploaded file ends up in assets/cache/form-builder, as well as in the assets/files/{entry_id}. Is this normal? When I view the entry itself, it's linked to the assets/files folder. So, what's happening seems independent of FormBuilder. Sorry if I am not fully understanding something about how files are dealt with in PW. I tried to find more info on how file uploads work in PW but I still don't fully understand it. Thanks for any info you can provide. Link to comment Share on other sites More sharing options...
ryan Posted November 16, 2013 Share Posted November 16, 2013 Files uploaded to pages go in /site/assets/files/. Files uploaded to FormBuilder forms go in /site/assets/cache/form-builder/ (or another directory, which you can define in your FormBuilder module settings). If you've got a file that's going in both, then that would be because you've got FormBuilder publishing entries to pages. I don't recommend automatically publishing entries to pages–better to approve them individually before publishing to pages. But either way, if you are publishing entries to pages, then there's going to be a file associated with the entry and another associated with the page. If form submissions are being used for the purpose of publishing to pages, then typically you'd delete the entry after publishing it to a page (thereby deleting the original copy of the file too). Let me know if I've misunderstood the question? 1 Link to comment Share on other sites More sharing options...
skovar Posted December 4, 2013 Author Share Posted December 4, 2013 Thanks Ryan, that clears it up. Link to comment Share on other sites More sharing options...
Mustafa-Online Posted September 23, 2018 Share Posted September 23, 2018 @ryan .. How to upload files to a custom directory? Link to comment Share on other sites More sharing options...
kongondo Posted September 23, 2018 Share Posted September 23, 2018 4 hours ago, Mustafa-Online said: @ryan .. How to upload files to a custom directory? Hi @Mustafa-Online. I've posted an answer in your original thread. 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