[web2py] Upload error with 2.23.0? ('Field' object has no attribute '__dir__')

2022-12-29 Thread Stephan
Hi, uploads with sqlite doesn't work anymore in my apps. I recognized this after installing ver. 2.23.0. Maybe it's just a coincidence. Here is the code: 127.0.0.1.2022-12-29.16-19-26.abbdc90d-cd14-467e-bd96-12f360bf1d4d 'Field' object has no attribute '__dir__' Version web2py™Version 2.2

[web2py] Upload images to folder outside web2py

2020-11-02 Thread 'Annet' via web2py-users
To upload images to separate folders outside web2py I set the upload folder with the model definition: UPLOADSDIR = '/home/me/apps/static/' db.define_table('mytable', Field('image', 'upload', autodelete=True, uploadfolder=os.path.join( UPLOADSDIR, 'vertexID%s' % session.vertexID), ...)

[web2py] upload - can I get the path to original file

2019-10-04 Thread 'jim kaubisch' via web2py-users
Hi In a file upload, I want to store both the original filename AND the path to the original file (to cover the case of files with the same name but from different folders) I'm successfully getting the filename from "request.vars.the_file.filename" as documented, but is there somewhere I can re

[web2py] Upload field causing a temp file issue

2019-08-21 Thread Paul Ellis
I have 2 similar controller functions using SQLFORM() with an upload field. One works and one is giving an error online (not when testing locally). I suspect a file system permission problem but I am not sure. The error only occurs if an image is uploaded. The extra processing after the form is

[web2py] Upload - need help

2019-01-05 Thread wswiecho
Hello, I have an upload field in my form. It works fine when I run it on the same machine as the web2py service. The issue comes when I run the service on the server and the UI on a different machine. The issue is the fact that existence of the file path I enter is checked on the server as oppo

[web2py] Upload CSV file though app admin getting an error in 2.17.2

2018-12-31 Thread sandeep patel
Hello All, I am getting an error while uploading a CSV file to table though app admin. [image: error.PNG] I am using python3.6 and web2py 2.17.2. Thanks SP -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://cod

[web2py] upload a photo to your site by >

2018-12-06 Thread Morteza Tabibi
Hello everyone I just started designing web2py I have a problem I can not upload a photo to your site with the command > And my operating system is Linux, thanks for giving me an example guide -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

Re: [web2py] Upload an image from front-end

2018-02-05 Thread Marco Mansilla
I'm looking for a similar solution, but the front-end is written in VueJs, and Axios for POST and GET requests, since I couldn'd find a way to send the actual file to the server I'm going with a solution close to your second option, has some extra steps but it's clean and somehow more verbose for m

[web2py] Upload an image from front-end

2018-02-05 Thread Πέτρος Χατζηλάμπρος
Dear all, in my last project I am using the following architecture: - Web2py is used only at the back-end. - The front-end is developed using React by an other developer. - The front end sends GET and POST requests to web2py and web2py responds with json. Using this architectu

[web2py] Upload to auth_user

2017-09-01 Thread Tiago Barrionuevo
Hi, I'm trying to upload images to auth_user without success. I already did it with other database tables with no problem. My code: model: auth.settings.extra_fields['auth_user'] = [ Field('picture', 'upload', autodelete=True, label=T('Picture')), ] I'm using the appadmin interface (myap

[web2py] upload and download, in order to manage attached files

2017-05-17 Thread J-Michel Angers
Hi, I'm building an app to fill "PurchaseRequest", to valid it by the staff, and then type a "PurchaseOrder". Exactly like with a paper form that we fill, and get signatures to valid it. Now the main boby of the app works (fill the form, set/choose the route, send emails to the concerned persons

[web2py] upload image and save in dinamic directory profile

2017-04-28 Thread felipe . marcos
hi, I want save one image in dinamic directory web2py, but ai not using SQLFORM, When i do upload the image i recieve in controller C:/FAKEPATH/imagename how do i handle this path or other upload ? sorry my inglish. look my code: View: Primeiro Nome

[web2py] Upload image and send by email

2017-03-28 Thread Анатолий Стешенко
Good afternoon. I need to upload multiple images and send by mail. After sending the images removed. How to do it correctly? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (

Re: [web2py] Upload Video

2016-12-16 Thread David
Does it have to be a certain video format e.g. mp4? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed t

Re: [web2py] Upload Video

2016-12-16 Thread Yoel Benitez Fonseca
I don't see wy your upload field is not accepting video files. El dic. 15, 2016 4:51 PM, "David" escribió: > What does RTFM mean? > > *db:* > >> db.define_table('post', >> >>Field('page_id','reference the_page'), >> >>Field('your_name', 'string'), >> >>

Re: [web2py] Upload Video

2016-12-16 Thread Philip Kilner
Hi David, On 15/12/16 21:50, David wrote: What does RTFM mean? Politely rendered, it means "Read the Fine Manual", meaning the info you are after is in the book. :-) HTH -- Regards, PhilK 'a bell is a cup...until it is struck' -- Resources: - http://web2py.com - http://web2py.com/bo

[web2py] Upload complete, but with error

2016-12-15 Thread Dave S
When uploading a file from one of our Windows clients, we sometimes find this in the web2py.log file: File "/home/ec2-user/web2py/web2py-2.14.6/gluon/rocket.py", line 1337, in run self.run_app(conn) File "/home/ec2-user/web2py/web2py-2.14.6/gluon/rocket.py", line 1851, in run_app

Re: [web2py] Upload Video

2016-12-15 Thread David
What does RTFM mean? *db:* > db.define_table('post', > >Field('page_id','reference the_page'), > >Field('your_name', 'string'), > > Field('video','upload', requires=IS_NOT_EMPTY()), > > Field('body', 'string'), > >Fie

Re: [web2py] Upload Video

2016-12-15 Thread Yoel Benitez Fonseca
se links: > > http://www.reddit.com/r/Python/comments/1r7v23/audio_streaming_app_in_web2py_from_scratch/ > https://groups.google.com/forum/#!topic/web2py/B1l_RfCYpXA > https://groups.google.com/forum/#!searchin/web2py/upload$20video$20%7Csort:relevance/web2py/nV64Vbjc-48/63f7wN5QnEsJ >

[web2py] Upload Video

2016-12-14 Thread David
pic/web2py/B1l_RfCYpXA https://groups.google.com/forum/#!searchin/web2py/upload$20video$20%7Csort:relevance/web2py/nV64Vbjc-48/63f7wN5QnEsJ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/i

[web2py] Upload files folder setup

2016-09-23 Thread SR
When we upload a file via an upload field, by default it goes into the /web2py/applications/yourapp/uploads folder, can we specify a different folder in a remote server? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Upload packed application ... error message clarity

2016-09-13 Thread Dave S
I was having trouble using the upload app button. "errors in form; please check it out", and "invalid package name". It may be that I'm slow today, but it took me a while to realize that I was supposed to fill in the application name, not just the filename. 1) maybe changing the color of th

[web2py] upload field and IS_IMAGE

2016-08-18 Thread Kirill Shatalaev
Hello. I have in model: Field('avatar', 'upload', required=False, autodelete=True, label=T('Avatar'), uploadfolder=os.path.join(request.folder, 'static/images/avatars'), requires=[IS_LENGTH(16384), IS_IMAGE()]) Well, the logic is simple: "avatar is not necessary, but when it uploade

[web2py] Upload file from 'static/images' to database

2016-03-29 Thread Nick Michael
Hi, I'm having some trouble and was hoping someone could point me in the right direction. I'm creating an application which has an input form which stores to a database. One entry accepts images, but can also be left empty (by using requires IS_EMPTY_OR). I also have a placeholder image saved u

[web2py] Upload locations in web2py_ckeditor plugin

2016-03-18 Thread David Orme
Hi, I've installed the web2py_ckeditor plugin from: https://github.com/timrichardson/web2py_ckeditor4/releases I think this will working really nicely for providing a table of simple blog posts, but I'd like to control where uploaded files get stored. I had a look at the source and it seemed li

[web2py] upload fields and curl

2016-02-08 Thread Dave S
Loose end from https://groups.google.com/d/msg/web2py/CPcbgpK_6Ho/RBjXSMMwGAAJ>: I have an upload field, and 1 controller to upload to it via SQLFORM and 1 controller to access it via REST. Using the SQLFORM, the local filename is included in the file data (as seen in the JSON-like representat

[web2py] upload file to rest service on GAE

2015-11-27 Thread James Burke
I'm having some trouble uploading/accessing a file on Google App Engine (GAE). This is the code used to store the file: @request.restful() def workspace(): def POST(*args,**vars): workspace_id = db.workspace.insert(repository=request.vars. repository,

[web2py] upload using restful

2015-11-24 Thread Jose
Hi How I can upload a file using RESTful api? Jose -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed

[web2py] upload file path

2015-11-17 Thread Manuele Pesenti
Hi! What's the right way of rebuilding file path of any record of my table with an upload field like: Field("archivio", "upload", uploadfolder=archive_upload_path, uploadseparate=True) where archive_upload_path = os.path.join(request.folder,'uploads/archives') maybe something like: path_to_file

[web2py] upload field type doesn't show in grid or smartgrid

2015-10-19 Thread 黄祥
hi, i have upload field type doesn't show in grid or smartgrid, in the older version i believe it shown by default. is it normal in the recent version (2.12.3) not shown the upload field type by default? ref: http://web2py.com/books/default/chapter/29/03/overview#Adding-grids p.s. in the book

[web2py] upload and sqlform.grid

2015-10-05 Thread Laurent Lc
Hi, I'd like to show pics for each records when i return a grid. My function is : def showonly(): query=(db1.test.present=='present') grid = SQLFORM.grid(query=query, user_signature=False, maxtextlength = 40,deletable=False, \ editable=False, create=False, detail

[web2py] Upload via ajax

2015-09-03 Thread Jose
Hi I want to upload a file via ajax. What I have working for when the file is stored in a folder, the problem and when I want it stored in a blob field. *In upload_picture function I do not know how to put the value of image_blob * The code is as follows ==

[web2py] Upload files via ajax using jquery.form

2015-08-11 Thread pang
the same problem but didn't find a solution: - https://groups.google.com/forum/#!searchin/web2py/upload$20file$20ajax/web2py/6yL1pNd7QE0/-9z7DWoQyDwJ - https://groups.google.com/forum/#!searchin/web2py/upload$20file$20ajax/web2py/PmvIKczfn84/MCJso4P0vXEJ - https://gro

[web2py] Upload multiple files and do background processing

2015-07-28 Thread Phillip
I need directions for properly executing the following Drop a window for selecting multiple files for upload Process the files in the controller (ideally using the scheduler to prevent the application from hanging) Since it appears that the processing must occur after all files ar

[web2py] upload field

2015-04-25 Thread KevC
Hi! I want to upload a file type .PDF in upload field but I only aceept this type of file. What can I do? I hope you can help me. Best regards. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.co

[web2py] Upload field default value ?!!

2015-03-04 Thread António Ramos
Hello i have an app that was designed with some required upload fields. Now after 1 year and around 5gb in my download folder, someone tells me that the upload fields are not required anymore under some scenarios. I cannot delete the required value from my dal because the sqlite does not let it.

Re: [web2py] Upload path broken since 2.9.11 update

2014-11-13 Thread Louis Amon
I really don’t have any time to setup my environment for proper testing & git contributions. I still consider myself to be a novice and I’m the only dev in my startup right now… But I do intend to contribute to the framework in a few weeks’ time, when my startup will have raised funds :) Le 1

Re: [web2py] Upload path broken since 2.9.11 update

2014-11-13 Thread Louis Amon
Hi Anthony, I was using 2.9.5 before the upgrade. In the end, I found that it may be that the part of the code than handles uploads through a filesystem never did work with the « uploadfolder » attribute (i.e. it might have been a patch I made a few months ago and lost in the process of the up

[web2py] Upload path broken since 2.9.11 update

2014-11-13 Thread Louis Amon
Hi, My website has been using web2py for a few months now, and we handle pictures using Amazon S3 and Cloudfront for storage and distribution. The corresponding code in web2py looks like this : Field('picture_1', type='upload', requires=IS_EMPTY_OR(IS_IMAGE(extensions=('jpeg', 'png'

[web2py] upload a file with just a post request

2014-11-12 Thread António Ramos
is it possible to just use a post request to upload a file to my web2py app? I have a situation where i need to receive a file from a cloud service to my app Regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Upload to static folder in other application

2014-10-14 Thread Annet
I web2py/applications I have 3 applications 1 application 'dbmodel' that contains the .table files in the databases folder and static files in the static folder, 1 application 'my' that serves as a backend and 1 application 'init' that serves as a frontend. As a way to reduce memory usage webfac

[web2py] Upload field custom manipulation

2014-07-29 Thread Kuba Kozłowicz
I have three tables: - invoices - invoice summaries - invoice bundles The website I am working on provides such a functionality, that user uploads a file, from which invoices and invoice summaries are generated and after being generated they are zipped and put into a bundle. For each upload I

[web2py] upload progress recipe not working

2014-07-01 Thread cowbert
I'm trying to do a simple manual file upload (without DAL) and display progress bar. I would prefer not to use any ajax helpers. I'm trying to use the upload progress recipe (involving the cache.ram tracking in copystream_progress). Here's my controller default.py: def index(): if request.ex

[web2py] Upload txt, HTML, etc and display them

2014-06-17 Thread Harish Krishna
I am building this portal where people can upload HTML files. I notice that the uploaded files are by default stored in the static folder with a name I can't make much sense out of. Now, I want people to view this HTML page on their browsers without having them download it. What is the simplest

[web2py] Upload image using RESTful api

2014-05-05 Thread iw3ijq
Hi! I have a SQLFORM with some filelds and an image (like example here: http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM). I have to populate the database using a python script. So I made a generic restful api: @request.restful() def api(): response.view = 'generi

[web2py] Upload file to copy.com

2014-02-05 Thread Tiana A. Ralijaona
Hi everyone, Is there a way for a web2py app, instead of uploading a file to the server local file system, to upload a file to a www.copy.com account? Thanks in advance, Tiana R. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sour

[web2py] Upload file functionality

2014-01-16 Thread LaDarrius Stewart
I thought I was on the correct path with this can soemone tell me where this is going wrong? db.define_table('consumer', Field ('lname','string', requires=IS_NOT_EMPTY ())

[web2py] upload e CASCADE delete

2014-01-15 Thread maurizio
Hi all, probably due to my incompetence I have the following problem, Thank's in advance anyone who wants to help me. consider the following code: ''' db.define_table('prodotto', Field('nome'), format='%(nome)s', plural='prodotti') db.define_table('allegato', Fiel

[web2py] Upload form

2013-11-02 Thread Martin Weissenboeck
A question about the upload form (Version 2.7.4): A form like form = SQLFORM.factory(Field('file', 'upload', uploadfield=False)) shows something like But in the admin application the widget for an upload filename looks like Nice - but how to get it? Regards, Martin -- Resources: - http

[web2py] Upload fields custom_store

2013-10-20 Thread Alan Etkin
Supposing one has a controller like this: def mycustomstore(f, n, p): print "file length", len(f.read()) print "file name", n print "path", p def index(): form = SQLFORM.factory(Field("myupload", "upload", custom_store=mycustomstore)) if form.

[web2py] Upload file using POST

2013-09-18 Thread Andreas Wienes
Hello, I want to upload a file by posting it from another script calling something like http://mydomain.com/default/acceptfile?filename=test.txt What is the easiest way doing this? Thanks a lot for your help! Andreas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] upload and a process file using SQLFORM.grid

2013-09-11 Thread P T
Hello All, Just started to learn web2py and here is an idea that I am trying to implement. Users creates scenarios, which includes an uploaded file. After the new scenario is created, the uploaded file should be processed and computed values written to results table. So far, I am successful in

Re: [web2py] Upload a file without a form

2013-08-06 Thread Marin Pranjić
Hello Eduardo, You can use db.table.insert(...) or db.table.field.store(...). Details: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#More-on-uploads Marin On Tue, Aug 6, 2013 at 5:01 PM, Eduardo Cruz wrote: > I need to upload a file that I will create on th

[web2py] Upload a file without a form

2013-08-06 Thread Eduardo Cruz
I need to upload a file that I will create on the fly, is there a way to do that without using a form? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web

Re: [web2py] Upload image and make a thumbnail question.

2013-08-05 Thread Richard Vézina
Consider using this slice instead : http://www.web2pyslices.com/slice/show/1666/improved-smarthumb I can help you trouble shoot and integrate in your app... I am the one who refactor smartthumb and set a threshold to make sure it generate proper resized with good quality thumbnails... :) Richa

[web2py] Upload image and make a thumbnail question.

2013-08-04 Thread Michael Gheith
Hello web2py community! I used to be able to use the following web2py slice successfully in the past (about a year ago): http://www.web2pyslices.com/slice/show/1387/upload-image-and-make-a-thumbnail Now it's not working with the latest build of web2py. Is anyone able to successfully get this s

[web2py] Upload field and SQLFORM.grid problem / bug?

2013-05-21 Thread David Marko
I have a table with upload field defined as follows: Field('file', 'upload', uploadseparate=True) . When I create some items using database administration, the image is displayed correctly. When I involve SQLFORM.grid in my controller, the link to file is not correct. See two links below: OK -

[web2py] Upload a file to a specified folder and not a database

2013-03-20 Thread Costain Nachuma
Greetings, Is it possible to upload a file to a folder using web2py without having to store in a database?if yes how can i do this -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails

[web2py] Upload field with clear text filename

2012-12-28 Thread Joe Barnhart
I'm not sure why this is difficult, but I see many posts about this when I search, yet none exactly work for me. This seems like it should be easy but is surprisingly difficult in web2py. I want to keep a table of uploaded files with the uploads in a "blob" field and the names in clear text in

Re: [web2py] upload field without the upload

2012-12-25 Thread Massimo Di Pierro
https://groups.google.com/forum/?fromgroups=#!searchin/web2py/upload/web2py/CWNwcgo3wIU/1K_7wJBPh-0J On Tuesday, 25 December 2012 20:51:21 UTC-6, lucas wrote: > > ok, what if i just upload the file? how do i do that programmically? > lucas > --

Re: [web2py] upload field without the upload

2012-12-25 Thread lucas
ok, what if i just upload the file? how do i do that programmically? lucas --

Re: [web2py] upload field without the upload

2012-12-25 Thread lucas
well, i get this error Traceback (most recent call last): File "/opt/web-apps/web2py/gluon/restricted.py", line 212, in restricted exec ccode in environment File "/opt/web-apps/web2py/applications/iquanta/controllers/site.py"

Re: [web2py] upload field without the upload

2012-12-25 Thread Massimo Di Pierro
You can do it and it will work. But you will not be able to download it using the "download" action. That is because it expects a certain format for filenames. You will need a custom download action that would know how to located the file from its name. Massimo On Tuesday, 25 December 2012 18:

Re: [web2py] upload field without the upload

2012-12-25 Thread Bruno Cezar Rocha
AFAIK upload fields are just string fields, so you can insert any string there! db.table.insert(filefield="blah") should work! You just have to use Python glob, os, sh or shutil to take a list of files and then populate the database. On Tue, Dec 25, 2012 at 03:40:51PM -0800, lucas wrote: hel

[web2py] upload field without the upload

2012-12-25 Thread lucas
hello one and all, i am doing en masse data table using xml data to a table that has an upload field. the files are already present in the upload subdirectory but i need to populate the table with the data, including the file name that is the upload field. i hope that made sense. how do i po

[web2py] upload from Edit page

2012-12-18 Thread ArNew
Hi Everyone, I need help urgently. In my application, I am have included upload fields in Create and edit page. Through create page, it was very straight forward with: {{=form.custom.widget.attachment}} (View) Field('attachment','upload',uploadfolder=os.path.join(request.folder, 'attachments'))

[web2py] Upload file from bash script

2012-12-15 Thread Alfonso Pastor Sierra
Hi, I want upload a file to a "upload" field in a table automatically, sending the file from a bash script using wget. How can I do it?. Thanks --

[web2py] Upload form, onvalidation and postbacks

2012-12-14 Thread Andy Salnikov
Hi, I have an issue with the upload form and postbacks. In my application I need to validate file contents before accepting it from user upload form, so naturally I try to use "onvalidation" method to it. The table used in the forma is defined like this: db.define_table('input_data',

[web2py] Upload directly to the server: error

2012-11-30 Thread Paulo
Hi! I'm trying to create a very simple upload field, without any complex mechanism. A user just uploads a file to a folder in the server (apache), without web2py changing the file name, and without any db. I have some dozens of files already in a folder in the server, I just need an upload for

[web2py] "Upload" fields does not use Bootstrap

2012-11-24 Thread Joe Barnhart
I was just playing with automatically-generated form with an "upload" field and noticed that the button created with that field does not use the "btn" class to invoke the styling of the Bootstrap layer. Was this deliberate or an accident? Is it easily fixed by a novice CSS/JS programmer? --

[web2py] Upload from git repro - GitCommandError

2012-08-24 Thread Martin Weissenboeck
I have found, that the url to upload a packed application "can be a git repo" and I tried it with https://github.com/niphlod/w2p_scheduler_tests.git The result: global name 'GitCommandError' is not defined Regards, Martin --

[web2py] Upload error field *_newfilename does not belong to the table

2012-08-07 Thread Paolo
Hi all, I've just checked out the last trunk, I got the following error: 2012-08-07 19:26:01,063 - web2py - ERROR - Traceback (most recent call last): File "/home/paolo/Desktop/git/web2py/gluon/restricted.py", line 205, in restricted exec ccode in environment File "/home/paolo/Dropbox/

[web2py] Upload file using the LOAD (....., ajax = True)

2012-08-06 Thread Picheth
I have a problem with the upload file using the LOAD (., ajax = True) please .. any help, cues or snippets of codes to accomplish this ... will be greatly appreciated Picheth. --

[web2py] Upload file into DB without SQLFORM

2012-07-09 Thread Athelionas
What is the proper way of uploading a file without SQLFORM into the following database table? db.define_table('files', Field('original_filename', 'string'), Field('file', 'upload', uploadfield='file_data'), Field('file_data', 'blob')) A simple inse

[web2py] Upload the more than 100 MB file

2012-06-15 Thread Sanjeet Roy
Can i upload the more than 100 mb file using web2py when i tried got the error:- Traceback (most recent call last): File "/home/tls-sanjeet/Desktop/web2py/gluon/restricted.py", line 205, in restricted exec ccode in environment File "/home/tls-sanjeet/Desktop/web2py/applications/upload_

[web2py] Upload filename - extension maintains original case

2012-06-14 Thread villas
If I upload a file, it is renamed as follows: .jpg --> new.name.abcdefgh.jpg .JPG --> new.name.xyzdefgh.JPG Note that despite the renaming, the extension maintains its original case. I do not like this because I want all my files to be saved in lowercase. For me it is unexpect

[web2py] upload - exceptions.MemoryError

2012-06-12 Thread Janath
Hi, I am trying to upload a file using follwing code segment (database table is shown below). I tried a file ~25MB. It generates a exceptions.MemoryError and there is no record insert to the table. Tried and was successful with a 2 MB file. I think I will have to upload max ~30MB. Error des

[web2py] upload porblem (argent )

2012-03-31 Thread Hassan Alnatour
Dear ALL , i am using upload Fields for uploading videos the videos are from 30MB to 40MB , when its uploading it reaches a point then it stops ?? why ?? i know that web2py Handel large file very well ?? what is going ?? what to do ?? Best Regards,

[web2py] Web2py upload behind apache mod proxy

2012-02-16 Thread Álvaro J . Iradier
Hi, I have a testing web2py environment running on a system on port 8000, and then apache2 using mod_proxy to redirect requests to a virtual host on port 80 to the web2py rocket server. This is the apache config for the vhost: --- ... Order deny,allow Allow from

[web2py] upload field value reset on form failure of another field

2011-12-05 Thread thodoris
Is there any way to keep the value that was inserted on an upload field after failing to validate the form due to another field, so that the user doesn't have to search for the file again?

[web2py] Upload in GAE, SQLFORM.factory, multiple tables

2011-11-19 Thread Bruno Rocha
I have One form for multiple tables working very well locally, I can include data and upload images normally on rocket server and sqlite. my model * Field("author", "reference auth_user"), > ** Field("author_nickname", "string"), > **

[web2py] UPLOAD without DBIO

2011-11-17 Thread Phyo Arkar
Hello Web2py. I am needing a function that Filename need to be reserved. Using filemanager (Elfinder) is the way i am treating currently but it do not use web2py's upload function. Need to keep file-name as it. is web2py's default upload function cand do without DB IO ? Thanks Phyo.

[web2py] upload file to database using curl

2011-10-27 Thread thodoris
Hello, I have been trying to find a way of how to upload a file in a database using curl but i can't find any references. I have found a reference that describes how to submit text so i guess that uploading a file should possible as well. What i want to do is to upload a file from my application

[web2py] upload

2011-10-25 Thread lucas
hello one and all, i know i have a lot of posts. i will become proficient soon. i am getting the hang of web2py's rythums. i get the response.download function, it is for the server to receive files from the client and put the files onto the server. i want to allow the user to download files t

[web2py] upload field in a generic form?

2011-10-24 Thread pepper_bg
Have to go to the experts for this. I have a table for storing arbitrary user data: db.define_table('extra_attributes', Field('user', db.auth_user), Field('name'), Field('type', requires = IS_IN_SET(('text','file'))), Field('val

[web2py] upload - file in custom folder

2011-10-17 Thread miroslavgojic
I have upload form and my files go to default uploads folder. Can I have more than one upload folder I have need to chose folder folder where I need to store file Is this possible

[web2py] upload and download with multiparty filter

2011-10-13 Thread miroslavgojic
Hi, I need to create upload and download page: On both page there is filter what should be applied for upload or download. Upload form have filter with 4 drop down list and one input field for text after this there is field for file selection and button for upload. I need to select some values fro

Re: [web2py] upload/post of semi-large files

2011-09-05 Thread Carlos
Hi Roberto, I was just about to post the solution I found: precisely what you mention :-) client_max_body_size 10M; Thanks!, Carlos

Re: [web2py] upload/post of semi-large files

2011-09-05 Thread Roberto De Ioris
> Hi, > > My production environment is ubuntu, postgresql, uwsgi and nginx. > > The issue I'm having is when posting a form with a semi-large file (~2 > mb), > where it keeps 'resetting' the % uploaded every 30 seconds up to 2 to 3 > times, and finally failing (with no specific error that I could

[web2py] upload/post of semi-large files

2011-09-05 Thread Carlos
Hi, My production environment is ubuntu, postgresql, uwsgi and nginx. The issue I'm having is when posting a form with a semi-large file (~2 mb), where it keeps 'resetting' the % uploaded every 30 seconds up to 2 to 3 times, and finally failing (with no specific error that I could see). I thou

Re: [web2py] Upload File via HTTP

2011-07-29 Thread Ismael Serratos
anybody? On Jul 27, 2011 1:02 PM, "Ismael Serratos" wrote: > I found this for Django I need exactly the same but for web2py could you > help me to translate??? or to give me a hint? > > # - upload_file.py # upload binary file with > pycurl by http postc = pycurl.Cur

Re: [web2py] Upload File via HTTP

2011-07-27 Thread Ismael Serratos
I found this for Django I need exactly the same but for web2py could you help me to translate??? or to give me a hint? # - upload_file.py # upload binary file with pycurl by http postc = pycurl.Curl()c.setopt(c.POST, 1)c.setopt(c.URL, "http://127.0.0.1:8000/receive/";)c.set

Re: [web2py] Upload File via HTTP

2011-07-27 Thread pbreit
The problem with SQLFORM is that I think it's going to be expecting a hidden field for security purposes. You might need to just write a controller that processes request.post_vars.myfile manually.

Re: [web2py] Upload File via HTTP

2011-07-27 Thread Ismael Serratos
Like this?? db.define_table('configfiles' Field('cfgfile','upload')) def getfiles(): form= SQLFORM(db.configfiles) if form.accepts(request.vars): db.configfiles.insert(cfgfile=db.configfiles.cfgfile.store(request.vars.Filedata.file, request.vars.Filedata.filename)) return dict

Re: [web2py] Upload File via HTTP

2011-07-26 Thread Bruno Rocha
I did it with forms. Client needs to make a POST to web2py with input file in form (make sure the right content type) in web2py server create an action that does: example: #model Field('picture','upload',uploadfolder=request.folder+'static/uploads', autodelete=True ) #receiver in form.accepts()

[web2py] Upload File via HTTP

2011-07-26 Thread Ismael Serratos
Hi! I was wondering how could I upload a file to web2py from another PC (intranet app) but via http, I mean, make a server and a client script. Is it possible?? client does't have web2py, just python, server is running web2py.

Re: [web2py] upload - S3 storage

2011-07-25 Thread nils
HI, Just looking at dal.py and there is a SQLCustomType, I was wondering if the functionality i would require could be added via this class?, Would this be the way to go ? Nils On Mon, Jul 25, 2011 at 1:04 PM, Nils Olofsson wrote: > Hi all, > >  Before I go off and make an  attempt at creatin

[web2py] upload - S3 storage

2011-07-25 Thread Nils Olofsson
Hi all, Before I go off and make an attempt at creating a S3 upload function, I was just wondering if anyone has a working version ? I read the discussion on this and for me I need a way of storing uploaded images on S3 to share between a few VPS on Amazon's EC2. The only other way to accompl

[web2py] Upload form using Load

2011-07-01 Thread David J.
I had this working a few weeks ago. I have an upload form which I load into the page using the LOAD helper. Right now I get an exception when I try to upload. Here is the code. def upload_contacts(): form = FORM(INPUT(_type='file', _name='data',requires=[IS_NOT_EMPTY()]), INPUT(_type='sub

Re: [web2py] upload file without storing it

2011-06-01 Thread Bruno Rocha
request.vars..file should give you the binary definition of the file, I am using it with uploadify -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria

  1   2   >