Hi Massimo, one more thing. My 'upload' field named filename is
getting uploaded to no_table.filename.x1yas234...etc., where the
x1yas234...etc. is the crypto part of the filename. I'm expecting the
filename to be doc.filename.x1yas234...etc. Why is this happening and
how do I get it to do the
Massimo, thanks for your continuing support on this issue. I am trying
this on an uploaded file (not the textarea input):
db.doc.insert(filename=db.doc.filename.store(stream,'filename'))
but I'm getting the ticket
filename=db.doc.filename.store(stream,'filename')
NameError: global name
Massimo, thanks for your continued support on this issue. I'm still
having trouble.
I'm doing this to store an uploaded file:
db.doc.insert(filename=db.doc.filename.store
(request.vars.filename.file,request.vars.filename.filename))
where doc is a table with ... Field('filename','upload') ...
I need to look at the complete action. I suspect you have
SQLFORM.factory somewhere that is interefring with the process.
On Jan 8, 3:31 pm, weheh richard_gor...@verizon.net wrote:
Massimo, thanks for your continued support on this issue. I'm still
having trouble.
I'm doing this to store an
If you have an input type=file name=xyz/ represented as a
FieldStorage in request.vars.xyz you can do
db.doc.insert(filename=db.doc.filename.store
(request.vars.xyz.file,request.vars.xyz.filename))
On Jan 7, 1:37 am, weheh richard_gor...@verizon.net wrote:
# model
db.define_table('doc',
How about with an input type='textarea' name='xyz' / which I then
write to a file abc under uploads/folder1/folder2 and want to insert
into the db.doc.filename, which is of type 'upload'?
On Jan 7, 8:54 am, mdipierro mdipie...@cs.depaul.edu wrote:
If you have an input type=file name=xyz/
There are two subfolders: private and uploads
You should not mess up with uploads. Let SQLFORM put staff there and
download retrieve it. You can manually do it but ONLY if you use
db.table.insert(fieldname=db.table.fieldname.store
(stream,'filename'))
This is very special folder because
There is an issue with the uploads folder.
Most filesystems will suffer a huge performance penaltiy if there are
100 files in a single folder.
So in an app that receives alot of uploads, having these all in one
folder is really really bad for the servers performance (think flickr
type site).
You can have subfolder structure
Field('file','upload',uploadfolder='')
any field can have its own uploadfolder which can me (but does not
need to be) a subfolder of uplaods/
On Jan 7, 4:59 pm, Thadeus Burgess thade...@thadeusb.com wrote:
There is an issue with the uploads folder.
Most
I assume I have to write the logic to determine whether uploadfolder
exists before writing into it, correct?
On Jan 7, 6:04 pm, mdipierro mdipie...@cs.depaul.edu wrote:
You can have subfolder structure
Field('file','upload',uploadfolder='')
any field can have its own uploadfolder which
true
On Jan 7, 6:55 pm, weheh richard_gor...@verizon.net wrote:
I assume I have to write the logic to determine whether uploadfolder
exists before writing into it, correct?
On Jan 7, 6:04 pm, mdipierro mdipie...@cs.depaul.edu wrote:
You can have subfolder structure
11 matches
Mail list logo