On Sat, Apr 12, 2008 at 02:06:42AM +0000, corvid wrote:
Jorge wrote:
On Fri, Apr 11, 2008 at 09:21:16PM +0000, corvid wrote:
Jorge wrote:
On Thu, Apr 10, 2008 at 04:13:56PM +0000, corvid wrote:
If I read in a file, delete that file, and try to read it in again (uses E2EReload), the submit will send the (now empty) file because a_Capi_get_buf() finds the (now empty) entry in cache. So I'll have to find out where an a_Cache_entry_remove_by_url() should go.
Yes.
It looks like I'd have to figure out CCC for this, which would likely be more trouble than it's worth.
OK, I'll allocate some time to give it a look.
Cool.
Patch committed. After pondering whether to add a URL flag to discriminate a file-input loaded-file (to be able to free it later), the complexities of it being also used/displayed by another Dillo window (and the inherent races), and the necessary handling code, I preferred a local load. The async approach may be done, but the committed approach is simpler, gets the work done, and may be extended to handle multiple files. I also added a handy heuristic for content-type detection of files (it works well with the w3c validator). -- Cheers Jorge.-