On Nov 27, 2012, at 4:16 PM, Steve Alex wrote: >> >> Is it correct, that for processing the content of a file upload in A4D, I >> have to use "copy upload" to first save the file to a known location then >> open the document with 4D commands, then delete the saved file? >> >> Or save it with "save upload to field" to a database field and access it >> from there, then delete the record. >> >> There is no way to load the content of the uploaded file directly into a >> blob or text variable (given it is text content), which would be easier? > > Now it has been a long time, but prey tell me how you can get something > externally created (not in 4D) into 4D without going through a document? > > You're dealing with ancient technology (4D) - feel fortunate there is at > least a way to get to it from the web. >
If I'm going to rant, let me rant on with a little more. I was also baffled with the upload procedure - but then I RTFD. I had to abandon Active4D uploads because Safari has "NEVER" worked with 4D (not Active4D, but 4D). Had to go to some java plug-in that I had to move files at least a few more times! I won't look at the docs now, but if I remember the upload procedure is kind of a transaction. It uploads the file and saves it in a temp location. You have until the end of the transaction to figure out what you are going to do with the upload. If you do nothing, it is gone! Change that behavior and you can end up with having someone uploading gigabytes of documents that don't get processed. My problem was I often was not notified the upload was done - just it sat there and spun. After many countless, wasted hours trying to figure out why upload was not working - which you can go back 7 or 8 years ago on the list on listen to me bitch, I concluded that 4D's TCP stack SUCKS! - it always has, it always will. No expert, but those who know Safari,know it tries to follow the rules strictly - many of which are often bended. I did laugh out loud when I looked at the latest release notes and saw that Safari upload is still a known problem. You guys are just not sending that frenchman enough money - for something that is free in the rest of the world. Steve _______________________________________________ Active4D-dev mailing list [email protected] http://list.aparajitaworld.com/listinfo/active4d-dev Archives: http://active4d-nabble.aparajitaworld.com/
