Hi Steve,
My message is probably wrong!
As far as I can remember, the miss was not in Colander documentation, but
in Cornice Swagger extension documentation about types converters
registration; an issue is already open to add this to it's documentation...
Best regards,
Thierry
--
https://www.u
On 2/9/21 12:56 AM, Thierry Florac wrote:
> I found that Colander is probably lacking a few documentation about creating
> and registering custom types and converters
I'd like to improve the docs. Would you please open an issue with what you
think is missing from this section?
https://docs.pyl
SON is the least desirable but it really depends
> on the situation - I'm definitely guilty of using it in certain scenarios
> (if you just really really really want a JSON body cuz that's what's
> easiest on the client-side).
>
> It's worth noting that Deform
that's what's easiest on the client-side).
It's worth noting that Deform has its own mechanism for storing the file upload
on the server such that you can connect it up to the form data from a separate
request. This is handy to avoid re-transferring the data when parts of the form
in a REST API
using this encoding? Should I prefer something like JSON with base64 string
encoding (including for use cases with large data files)??
- how should I handle schema verification with Colander for file upload
fields (what I actually receive using form-data encoding is a CGI
FieldStorag
On Wednesday, April 18, 2018 at 4:54:41 PM UTC-4, Bert JW Regeer wrote:
>
> Using request.body_file is actually better than using body_file_raw. The
> raw reads directly from the underlying wsgi.input, which means if you are
> using wsgiref or some other server that doesn't correctly input termi
request.body_file will protect you against bad WSGI servers/clients not sending
appropriate headers. It'll return you something that you can read from, even if
it is 0 bytes. It will also not let you read past the end of the input.
request.body_file_seekable will return the same thing as request
Using request.body_file is actually better than using body_file_raw. The raw
reads directly from the underlying wsgi.input, which means if you are using
wsgiref or some other server that doesn't correctly input terminate wsgi.input
you may potentially deadlock reading forever because the wsgi.in
I was confused on this years ago. The problem is in naming...
`curl` is concerned with the HTTP method `POST`. Let's call that `HTTP
POST`. If you look at the `curl` documents for the difference on the
various `--data-` options. Those options will `HTTP POST` data in
different formats an
OK, I'm getting there, althought I'm still confused a bit. In WebOb
docs I found request.body_file, request.body_file_raw,
request.body_file_seekable.
In multipart's request.POST, I'm doing:
file_obj.seek(0, 2)
file_size = file_obj.tell()
file_obj.seek(0)
Should I be using seekable or raw for th
I've realised the following:
1. If I don't specify Content-Type, curl defaults to x-www-form-urlencoded
2. What I thought is the binary file's contents as a string is
actually not working reliably. On an XML upload of a single file I get
thousands of items and request.POST.items() looks like:
[' wr
Hi,
I'm trying to implement an API to a website which didn't have an API
yet. It's purpose will be to allow file uploads from 3rd party native
apps.
I'd like to implement the API like Dropbox v2 API, just as a good
reference for API design.
It's upload endpoint has the following specs:
https://w
off the top of my head:
1. celery
2. fork a process to handle the uploads
3. register a cleanup handler
4. homegrown batch / daemon -- log the upload locally, then process the
upload separately
in my personal experience -- the main thing i'd watch out for is the
book-keeping/accounting portion o
On Apr 12, 2013, at 4:06 AM, uday
mailto:gotou...@gmail.com>>
wrote:
I have a pyramid app which handles file upload. I am able to upload that file
to amazon s3 as soon as user uploads the file without saving it anywhere on the
file system. The problem here is, it is taking more tim
I have a pyramid app which handles file upload. I am able to upload that
file to amazon s3 as soon as user uploads the file without saving it
anywhere on the file system. The problem here is, it is taking more time
than just storing file locally. I just want a simple task to upload the
file
On Thu, 2011-06-16 at 10:54 -0700, Jason wrote:
> It was a problem with my form (being submitted by jquery)
For the record, here's a short tutorial describing file uploads and
Pyramid:
http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/files.html
--
You received this message because y
It was a problem with my form (being submitted by jquery)
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pylons-discuss/-/1bEbkNjqa88J.
To post to this group, send emai
How are file uploads done in Pyramid?
I have tried to access the file from request.POST['fileupload'] and
request.params['fileupload'] using this html form:
I have tried printing out all the keys in the request, but I cannot find the
file anywhere.
Thanks,
Jason
--
You received this m
k.
>
> I try to create a file upload form to store small binary (audio) files
> in a DB.
>
> I use Deform for my form which contains a FileUploadWidget. Great. But
> after this I hit a brick wall. How to pass the data from Deform
> filedict into a SqlAlchemy LargeBinary?
>
Possibly a newbie question (which I am), but I'm stuck.
I try to create a file upload form to store small binary (audio) files
in a DB.
I use Deform for my form which contains a FileUploadWidget. Great. But
after this I hit a brick wall. How to pass the data from Deform
filedict i
>>
>> Try upgrading Pylons to development version, Enrico.
>>
>
> I've modified a lot of files to reflect your changes, but in your site
> you say that
> "gp.fileupload can be used without modifying your application"
> So I want to start again with a fresh paster project, what is the
> minimum con
>
> Try upgrading Pylons to development version, Enrico.
>
I've modified a lot of files to reflect your changes, but in your site
you say that
"gp.fileupload can be used without modifying your application"
So I want to start again with a fresh paster project, what is the
minimum configuration to
>
>> How do I append gp.fileupload to an existing Shabti
>> (shabti_formalchemy) application? In particular, how to attach the
>> middleware?
>
Thanks a lot, Graham!
>
> [pipeline:main]
> pipeline = fileupload {{package}}
>
> [filter:fileupload]
> [app:{{package}}]
> use = egg:{{package}}
Thos
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 29 Jan 2010, at 21:41, Vladimir Dronnikov wrote:
How do I append gp.fileupload to an existing Shabti
(shabti_formalchemy) application? In particular, how to attach the
middleware?
Using the standard tempita substitution pattern, replace {{pac
How do I append gp.fileupload to an existing Shabti
(shabti_formalchemy) application? In particular, how to attach the
middleware?
TIA,
--
Vladimir
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to pylons-di
> .
> File "/home/morelli/PYTHON/INTERNAL_PROGRAMS/samplepylons/
> samplepylons/config/middleware.py", line 37, in make_app
> config = load_environment(global_conf, app_conf)
> File "/home/morelli/PYTHON/INTERNAL_PROGRAMS/samplepylons/
> samplepylons/config/environment.py", line 26, in load_en
> Haha, you're right. I've upgraded my FF to 3.6 (OSX) and got the same crash.
> I've also tried without the JS stuff. FF freeze and style freezing
> even if the upload is complete.
> Don't know what to do. But I don't want to spend time on this buggy
> version, sorry.
Ok, but which is the minim
On Thu, Jan 28, 2010 at 12:58 PM, morellik wrote:
>
>> hm... don't know. What append if you try a 600Mb upload with a standard form
>> ?
>
> I didn't tried.
>
>>
>> You can try to turn the log level of the root logger to DEBUG to get
>> more info in the pylons console and use firebug to log ajax
> hm... don't know. What append if you try a 600Mb upload with a standard form ?
I didn't tried.
>
> You can try to turn the log level of the root logger to DEBUG to get
> more info in the pylons console and use firebug to log ajax calls in
> firefox
> I've just try the sampleapp with a 300Mb fi
On Thu, Jan 28, 2010 at 11:07 AM, morellik wrote:
>
>> Look like I've forget to sync the repo from bitbucket.
>>
>> Latest log entry is now "upgrade sample pylons to
>> 0.9.7"http://www.gawel.org/docs/gp.fileupload/rev/53aa46a39a7e
>>
>> So it should work.
>>
>
> Thanks seems to work.
> But, when
> Look like I've forget to sync the repo from bitbucket.
>
> Latest log entry is now "upgrade sample pylons to
> 0.9.7"http://www.gawel.org/docs/gp.fileupload/rev/53aa46a39a7e
>
> So it should work.
>
Thanks seems to work.
But, when I try to upload a file (around 1/2 MB) the progress bar
doesn't
On Thu, Jan 28, 2010 at 5:47 AM, Graham Higgins wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> On 27 Jan 2010, at 20:24, Graham Higgins wrote:
>
>> Okay, dokey, I'll give it a spin and confirm back that it does.
>
>
> Yes, it does.
>
> I needed to make one or two simple changes and
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 27 Jan 2010, at 20:24, Graham Higgins wrote:
Okay, dokey, I'll give it a spin and confirm back that it does.
Yes, it does.
I needed to make one or two simple changes and I've updated the
bitbucket repos:
http://bitbucket.org/gawel/gpfile
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 27 Jan 2010, at 20:24, Graham Higgins wrote:
Latest log entry is now "upgrade sample pylons to 0.9.7"
http://www.gawel.org/docs/gp.fileupload/rev/53aa46a39a7e
So it should work.
Okay, dokey, I'll give it a spin and confirm back that it does.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 27 Jan 2010, at 18:56, Gael Pasgrimaud wrote:
Latest log entry is now "upgrade sample pylons to 0.9.7"
http://www.gawel.org/docs/gp.fileupload/rev/53aa46a39a7e
So it should work.
Okay, dokey, I'll give it a spin and confirm back that it does
On Wed, Jan 27, 2010 at 5:04 PM, morellik wrote:
>
>
> On Jan 27, 4:39 pm, Gael Pasgrimaud wrote:
>> Hi,
>>
>> On Wed, Jan 27, 2010 at 4:15 PM, morellik wrote:
>> > Dear all,
>>
>> > I'm writing a pylons application to permit to our users to upload very
>> > big files (hundred of MB). During upl
On Jan 27, 4:39 pm, Gael Pasgrimaud wrote:
> Hi,
>
> On Wed, Jan 27, 2010 at 4:15 PM, morellik wrote:
> > Dear all,
>
> > I'm writing a pylons application to permit to our users to upload very
> > big files (hundred of MB). During upload I would display a progress
> > bar to check the uploading
Hi,
On Wed, Jan 27, 2010 at 4:15 PM, morellik wrote:
> Dear all,
>
> I'm writing a pylons application to permit to our users to upload very
> big files (hundred of MB). During upload I would display a progress
> bar to check the uploading status.
>
> I'm searching for some tools to help me. I fin
Dear all,
I'm writing a pylons application to permit to our users to upload very
big files (hundred of MB). During upload I would display a progress
bar to check the uploading status.
I'm searching for some tools to help me. I find gp.fileupload but I
really don't understand how to use in Pylons.
On Feb 21, 10:00 am, snorkel wrote:
> I was using gp.fileupload with good results in 0.9.6, when I upgraded
> to the latest release
> it stopped working as it did in 0.9.6. It seems to try to do
> operation per file in the multipart request instead
> of one operation for all the files uploade
Hi,
I was using gp.fileupload with good results in 0.9.6, when I upgraded
to the latest release
it stopped working as it did in 0.9.6. It seems to try to do
operation per file in the multipart request instead
of one operation for all the files uploaded.
Is anyone doing a upload progress bar with
You're right. The string that's being passed along is not the real
sessionID.
I'm relying on swfupload to put the sessionID into the form. The
swfupload plugin that I'm using says that it "automatically collects
the cookies from the browser and adds them to the post_params."
Passing in the se
On Jun 27, 2008, at 1:42 PM, k7lim wrote:
I'm starting to get the hang of this. However, I'm getting None back
for my get_by_id(sessionID) call. My hunch is that the reason is
something else you stated: I'm not actually passing the sessionID, as
I'd assumed. I'm passing a long hex string (len
Hey Ben,
I'm starting to get the hang of this. However, I'm getting None back
for my get_by_id(sessionID) call. My hunch is that the reason is
something else you stated: I'm not actually passing the sessionID, as
I'd assumed. I'm passing a long hex string (len is 72). Perhaps this
is the hash
On Jun 27, 2008, at 10:14 AM, k7lim wrote:
Thanks for the quick reply, Ben.
Once I have that oldsession, how do I "install" it as the current one
that the system can act on?
You need to register it as the object that should be used as
pylons.session like so:
import pylons
# Get the new se
Thanks for the quick reply, Ben.
Once I have that oldsession, how do I "install" it as the current one
that the system can act on?
On Jun 27, 12:56 pm, Ben Bangert <[EMAIL PROTECTED]> wrote:
> On Jun 27, 2008, at 9:03 AM, k7lim wrote:
>
> > However, I've poked around endlessly at Pylons/Beaker
On Jun 27, 2008, at 9:03 AM, k7lim wrote:
However, I've poked around endlessly at Pylons/Beaker docs (not much
there), and I can't figure out how to "resume" my session, given a
POST variable that has the right sessionID in it.
You can get a session object back corresponding to the sessionID w
Hey Guys,
Thanks for some great previous threads, this is a good resource.
I'm using SWFUpload to allow a user to submit a file.
However, SWFUpload comes back with a 302 error: The "user" (flash)
isn't logged in, so isn't allowed to post the file.
SWFUpload has a helper function that can help
Finally I found the source of the problem.
In case of a file upload the responsible controller is called
immediately, even before the file is completely uploaded. The
execution of the controller instructions is stalled until the file is
uploaded completely if
- request.POST['data_file
Ken,
thanks for your sample.
> def upload(self, environ):
> myfile = request.POST['myfile']
> fileName = myfile.filename
> myfile.file.close()
What happens if you do not use the provided data? It should be
technically possible to ignore the user supplied data completely. So
the appl
My apologies, I didn't pay close attention to your issue. I have my
files stored outside of the project directory but I've pasted the
relevant parts that may help..
Just as example this is part of my uploading controller:
def upload(self, environ):
myfile = request.POST['myfile']
fileNam
Ken,
thanks for your reply.
> I would recommend using fileapp to handle file uploads.
If I got the docs right, fileapp is intended to support sending file
content from the server to the browser. My problem is related to the
other direction (a user uploads a client-local file to the server via
t
as I remove the line "data_file =
> request.POST['data_file']" I get
> - "The connection was reset(Mozilla)"
> - "The page cannot be displayed (IE)"
>
> The problem only occurs If I try to upload a File with several
> megabytes in size. Smaller
File with several
megabytes in size. Smaller files work out. Also if I do not select a
file for file upload, no error occurs. Anyway, as soon as I access
uploaded files in the controller, also large files work fine. There is
nothing reported in the
Hi all,
I was looking for a nice way to display a progress bar or some
indication that a file in being transferred, and came across this one:
http://development.finetooth.com/?p=11
It seems to rely on PHP, so I now want to convert it to fit into
Pylons easily.
I have set up a project for this o
G. Windows!
That was it, need to open with wb.
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe
On 10/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have a form that I'm using to upload a file. All seems to be in
> order, but when I look at the newly copied file it's all skewed and the
> colors are all wierd.
>
> Here is the code I'm using
I have a form that I'm using to upload a file. All seems to be in
order, but when I look at the newly copied file it's all skewed and the
colors are all wierd.
Here is the code I'm using to handle the file upload, Any ideas? :
if 'big_image' in request.params:
This one time, at band camp, Daniel Lyons wrote:
>This one's biting me also. I fixed it for the mean time by making a
>copy of FileUploadKeeper and changing these lines:
I forgot about this message :)
I made my own validator, to use instead of FileUploadKeeper:
class FileUploadValidator(validat
Jamie,
This one's biting me also. I fixed it for the mean time by making a
copy of FileUploadKeeper and changing these lines:
def _to_python(self, value, state):
upload = value.get(self.upload_key)
static = value.get(self.static_key, '').strip()
into this:
def _to_python(self, valu
o resubmit the content it'll give you a
>hidden field that can take the place of re-uploading the file. Anyway,
>it's meant to be used in a situation where you have a complex form and
>an image upload in that form.
Ok.
I've got a bug where I try to validate a form with a
Jamie Wilkinson wrote:
> Hey,
>
> Does anyone have an example of using FormEncode's
> FieldStorageUploadConverter or FileUploadKeepr ? There's no example in the
> docstrings and I'm just having a hard time applying them in the same way as
> any of the other validators.
I've used them from times
Hey,
Does anyone have an example of using FormEncode's
FieldStorageUploadConverter or FileUploadKeepr ? There's no example in the
docstrings and I'm just having a hard time applying them in the same way as
any of the other validators.
--~--~-~--~~~---~--~~
You re
63 matches
Mail list logo