Buy Now
Sign in

upload file action with event loop

saveg , December 24 2019, 18:30
S
saveg 90
December 24 2019, 18:30 #390475
Im trying to simply make sure all file upload actions has a simple event loop that if size is exceeded or another type is uploaded to give the user error and keep him on the upload page till he finishes correctly.
Im attaching a screen from my actions
am I missing anything?
loop_Screenshot_2019-12-24.png
healyhatman 8
December 25 2019, 10:36 #390479
That's not what the loop event is for. You want an Event Load.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
S
saveg 90
December 25 2019, 13:46 #390481
ok thanks, is it just a std event load insert?
S
saveg 90
December 25 2019, 13:52 #390482
ok here is what I did
but strange enough same results.
is it the right event switcher?
or am I missing something?
event_Screenshot_2019-12-25.png
Attachments
event_Screenshot_2019-12-25.png
event_Screenshot_2019-12-25.png
(34.42 KiB)
83 Downloads/Views
healyhatman 8
December 25 2019, 20:47 #390484
What does the debug say
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
S
saveg 90
December 26 2019, 05:20 #390486
Im checking but my question: is my logic right to put the event in the fail action?
also is it the right action "event loader"?
healyhatman 8
December 26 2019, 11:45 #390489
Yep
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
S
saveg 90
December 26 2019, 12:11 #390490
ok p5 is the page where the action is in. shall I change it some previous page or what??
the strange thing is that its not working at all with event loader.
What I want is simply get the user to re upload the file if there is an error thrown like over the allowed file size of wrong ext.
healyhatman 8
December 26 2019, 12:13 #390492
You want to load the event that displays the file upload field.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
S
saveg 90
December 26 2019, 13:23 #390494
yes indeed since the prev upload failed I want to keep the user to re upload until its done successfully
S
saveg 90
December 26 2019, 14:14 #390495
Here is a quite strange thing, the event switcher seems to be fine I think
Im getting an error from admin tools thinking im doing DFIShield on the url

            DFIShield          
            https://www.xxxx.xxx/yyy/en/xxx.html?chronoform=ialdftestmp&event=p5          
I have whitelisted the whole chronoforms component from Web App firewall and still giving the same problem
S
saveg 90
December 27 2019, 09:31 #390498
this of course happens only when I upload an oversized file or anther file ext.
what do you think? are there any quick fix to allow admin tools wrking?
healyhatman 8
December 27 2019, 13:02 #390500
Well if admin tools is blocking something you need to talk to the admin tools people.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store