| |
| |
| |
|
Page: 1 2 3 4 5 6 7
Comments:
<0> yeah :( <1> at least in most environments i've seen <1> especially if you're doing cgi <0> but it doesn't make sense <1> because the cgi process isn't persistent <1> in php i would write the file to a temporary location then set a variable in $_SESSION[] <0> I think you might be misunderstanding me <1> in rails, i would use @session, but same idea <0> like...if there are no validaiton errors, the file is attached and the email is sent with no problem <1> right <0> oh, ok <0> and all that session stuff is taken care of by zope <1> so you would first do your validation <1> if it checks out ok, you just whoosh it off <1> if not, store the file, return an error to the user and set in their sesion that you've stored a file and where <0> hmm
<0> and then delete it when their done <1> then, when they send again, if it p***es validation, open the file, and hand it to the funciotn that sends the mail <1> yea <0> I"m afraid it would have negative effects on performance <1> if it's naything like perl's cgi, you get a filehandle <1> well, my guess is it already writes the file to a temporary directory <1> then opens a filehandle on it, and hands that to you <1> that's what CGI.pm does afaik <0> yeah, there's some magic happening in the background that I don't quite understand. at first I thought python was somehow doing it <1> that's what php does <1> yea you should check how your framework handles file uploads <1> it should be well documented, that's a very common feature <1> if i knew how ot use CGI::Session in perl i'd make you a quick example <0> well, the problem is that I don't think it's a straightforward file upload <0> I dunno <1> it should be <1> like i said, they probably just give you a filehandle <1> and you take that from there <0> you know...maybe that's what I"m doing wrong. perhaps I'm just submitting the filehandle on the second try instead of actually submitting the file <1> well, if you've stored the file on disk and sent the user back <1> then you probably have to open the file and give it to the function <1> make your mail function take a filehandle as input <1> ***uming your framework handles file uploads by giving you a file handle <0> well, it gives me a file object <0> or "instance" <1> yea <1> so essentially a filehandle <0> I'm still unsure how it's making the transition from input type="file" to file object <0> and it's not really well documented, no <0> as in..not everything is documented...and...all the documentation isn't 100% reliable <1> what framework are you using? <0> zope <1> oh <1> zope is hugely documented <1> i'm sure something like fileuploads are handled ok <0> heh <1> oh, one more thing to consider <0> the lates version of zope to have an online book is 2.7 <1> are your forms set with the content-type multipart/form-data ? <0> and that's not even reported to be complete <0> like...it's still in progress <0> despite the fact that zope is like in 2.9 now hehe (excluding the zope3 stuff) <0> yes, I've got it set to multipart/form-data <1> ok <1> well lemme take a quick crash course in cgi::session and i'll see if i can't whack out an example in perl <0> and yeah...I can find zope info all over google, but it's only accurate half the time <1> heh <0> but don't get me wrong. zope is ok, it's plone I truly despise <1> hehe <0> so basically you are saying there's not going to be an easy way to wrap this up, I'm gonna have to step back and redo some stuff <0> I've been trying to find a way to trick the form into submitting a file type without using input type="file" (like with hidden inputs) <0> but for some reason, submitting the file with input type="hidden" doesn't work <1> you can't :) <1> you can p*** the filename, but that doesn't work <0> I even tried encapsulating it <1> haha <1> nice :P <2> supppp <1> that would work, theoretically <1> [corrupt]: hi sir. <0> yeah, maybe I'm not doing it right
<2> hey kitkit :P <1> [corrupt]: where's mah spoof ;(~ <2> ive been cheating on qmail recently :) <1> uh oh. <2> i told you, you have one on my box :) <2> yeah yeah.. been messin with postfix <1> hehe <1> i tried <2> and i really like it <1> 10 lines into the config file and i was like 'blah" <1> i really like how simple qmail makes things <2> i dunno <1> want to play backup mx for some domain? <2> i have to say postfix is simpler <1> put the odmain in rcpthosts <1> done. <1> nothing to restart <1> nothing to reload <1> it's just done. <0> kitchen: http://pastebin.com/588305 <2> it took me about an hour to setup an entire virtual setup with clamd/sa/maildrop/etc <2> first time with qmail.. that toook like 2wks <2> :P <1> [corrupt]: yea but you're using amavis aren't you <2> yeah <1> yea <2> for now <0> kitchen: that's my python script that tries to manually encapsulate the file type like the file selection control does <1> amavis can eat **** and die <1> i don't like the whole smtp relay proxy crap postfix makes you jump through to put a virus scanner in front of it <1> i like the QMAILQUEUE interface, a lot. <2> yeah i was sorta wierded out at first <0> oh ****, I'm a dork <0> apparently I should read before following examples <1> hrm, cgi::session seems more complicated than I feel like getting into right now <0> hehe <0> understandable <1> i wish i could explain it beter <0> the good news is that our discussion has gotten me thinking and I have a few ideas that might work <1> wait <1> let'd use a writeboard <1> and i can show you <0> hehe ok <1> for some reason i'm better at showing someone a concept using hand motions than explaining it <0> I think I can use zope's portal_factory to create a temporary file object that I can access <0> I totally understand. whiteboarding is a necessity <3> sigh <3> i ****ed up <0> I ***ume you're gonna create the writeboard <3> time to call my attorney <1> hrm <1> writeboard isn't what i thought it was <1> i thought you could actually draw on it <0> oh, it's only for sharing files? <3> kitchen, you should be able to <0> wtf <3> its a white board that you can draw on <1> no, i think it's just for sharing text <0> bummer <3> :/ <3> anyway, i gotta draft a letter to my atty. bbl <1> http://123.writeboard.com/4e8d9877e58474393 <1> p***word is qmail <0> hehe, that's kind of weak <0> helll, we're sharing text right now <1> yea <1> but we can't mark it up and annotate it <0> true <0> I just can't see the usefullness in that <1> ok <1> www.collingwoodnow.com/chat <0> are all of 37 signals projets like this...
Return to
#qmail or Go to some related
logs:
#debian #cph torrent sweetstephanie #windows #hardware #beginner #politics free 4 leters domain #hardware #windows
|
|