[web2py] How to work with files in multipart/form-data?

2018-10-10 Thread Константин Комков
In view I use JS code, which allow using one button for opening Dialog and choosing any files. Then I send its in controller like multipart/form-data. Прикрепить $(function() { var files; function showLoadDocsInfo(data) { console.log('In showLoadDocsInfo');

[web2py] Getting a PWA set up based on web2py

2018-10-10 Thread Valdeck Rowe
I decided to use upup.js by Tal Ater, website here: https://www.talater.com/upup/getting-started-with-offline-first.html, mainly because I had a project deadline and needed something with a short learning curve. The main thing about PWAs appears to be that the service worker javascript files

[web2py] Re: Getting a PWA set up based on web2py

2018-10-10 Thread Jose C
> > > The main thing about PWAs appears to be that the service worker javascript > files need to be accessible from the domain root. > ... > The main issue I'm having so far is getting a 404 error when trying to > load the service worker file (upup_sw.js) which I think is a path issue > (inside

[web2py] Big file uploads not always inserting into db with sqlite/rocket

2018-10-10 Thread Jordan Ladora
Hi! I just noticed that uploading files up to around 120mb using a simple form (crud.create) and model works reliably using the default setup on linux (sqlite and rocket). But when trying to upload files around 500mb, while the file always goes correctly to the upload folder, the db insert only

Re: [web2py] Re: Using Stripe's Checkout w/ web2py

2018-10-10 Thread David Manns
I know your post is a long time ago, but since I have just been dealing with the same issue ... Initially, I followed the implementation described in the web2py manual, using /gluon/contrib/stripe.py. This worked locally but not on my (free) test account at PA. I re-implemented, following the

[web2py] Other Recipes - Stripe - in the manual out of date.

2018-10-10 Thread David Manns
I recently implemented stripe checkout in my site which runs on Pythonanywhere. Initially, I followed the recipe in the manual, using /gluon/contrib/stripe.py. Worked in local test, but failed on my test site which is a free Pythonanywhere account, although PA say Stripe is whitelisted. The of

[web2py] Re: Using Stripe's Checkout w/ web2py

2018-10-10 Thread Dan Carroll
For those looking for how to get Stripe to work with Web2Py, follow the API from Stripe. The getting started documentation with the checkout script works. Make sure you are following the Python code section. (https://stripe.com/docs/quickstart) Hint: Place the checkout script inside of a web2py

[web2py] Help needed with web2py-book app

2018-10-10 Thread Nico Zanferrari
Hello, I'm playing with the web2py-book app, in order to make it python 3 compatible and also to improve it a bit. I have a couple of questions related to default.py: 1. there were some encode-decode errors. I was able to resolve them (see https://github.com/nicozanf/web2py-book for a preview) bu

[web2py] Re: Big file uploads not always inserting into db with sqlite/rocket

2018-10-10 Thread Dave S
On Wednesday, October 10, 2018 at 9:31:04 AM UTC-7, Jordan Ladora wrote: > > Hi! > > I just noticed that uploading files up to around 120mb using a simple form > (crud.create) and model works reliably using the default setup on linux > (sqlite and rocket). But when trying to upload files around

[web2py] Re: Big file uploads not always inserting into db with sqlite/rocket

2018-10-10 Thread Jordan Ladora
Firefox! Thanks very much for this - it's really helpful. I use apache/postgres on production servers but it will take me a very long time to upload such a big file to those [remote] servers, so I was testing locally. Based on your experience, I think my issue is probably just due to the limit