Page 1 of 1
Upload Module - File upload confirmation?
Posted: Mon Apr 19, 2010 7:25 am
by zygote
Hi, Sorry if this is a basic question:
What is the code to display a confirmation that a file has been uploaded?
I tried,
{cms_module module="Uploads" category="Abstracts" mode="detailed" }
{cms_module module="Uploads" category="Abstracts" mode="single" }
but I get only errors about a file_id?
I tried
{cms_module module="Uploads" category="Abstracts" mode="summary" }
but it outputs nothing.
Thanks for your patience.
Re: Upload Module - File upload confirmation?
Posted: Mon Apr 19, 2010 12:50 pm
by jmcgin51
you want to display the files that have been uploaded in a given category, or you want a message to be displayed after each upload, confirming that the file was uploaded ("thank you - your upload was successful!")
Re: Upload Module - File upload confirmation?
Posted: Mon Apr 19, 2010 1:13 pm
by zygote
Thanks for your reply,
The second - some kind of "thank you - your upload was successful!" message. If that is not possible, then the first option would be fine.
Re: Upload Module - File upload confirmation?
Posted: Thu Apr 22, 2010 10:19 am
by zygote
No, when I upload a file using the form, it uploads correctly (the file is on the server) but the page that loads after the upload just has the upload form there, no success message.

Re: Upload Module - File upload confirmation?
Posted: Thu Apr 22, 2010 10:36 am
by owr_bgld
in the settings you can put in a page-alias for linking after upload - so if you make a page with "Thanks for the upload" you have this effect.
The only thing is to have two pages - one for the (first) upload and a second with the "Thank you" - and eventually the form for the upload (or a link back to the upload-page)
Re: Upload Module - File upload confirmation?
Posted: Thu Apr 22, 2010 2:08 pm
by zygote
Thanks!

This did it!
Code: Select all
<p>Success - your file has been upload successfully.</p>
{Uploads category="my-category" mode="upload" detailpage="my-upload-sucess-page-alias"}
Thanks for all your help, this is at least the minimum needed to be usable now.
CMSMS is just fantastic... just wish this (surely common?) module was documented a bit more thoroughly.
Any further help would just be gold though.
I used the uploads module instead of my own module for the advanced features available, and to not be able to use them is just frustrating:
- I cannot get a category listing to work either using:
Code: Select all
{Uploads mode="summary" category="my-category" }
Again just results in no output from the command, even when files are in the category. If I change the category, it has an error saying category not found, so it is definitely setup correctly.