samedi 30 décembre 2017

Dynamic Web Twain - PHP - Adding Additional HTML Fields

I know it might be a long shot but I'm hoping someone had a similar experience at one point and might be able to point me in the right direction.

I've got a laravel project but I think I have an idea of how to incorporate the Dynamic Web Twain (http://ift.tt/2CnONEw) into it.

The only problem is I'm not quite sure how I would go about adding additional fields to the scanner UI (like what you see here: http://ift.tt/2BZiUyI).

At the moment my laravel site has a working upload portion to a model where I can submit attachments, however, with the attachment form are fields that include "visibility", "type", "upload location" etc. etc. But I can't seem to figure out how I would add fields like what I already use.

From what I've tested, this is an incredibly useful tool and would work well if I could integrate it into all aspects of my site.

The closest thing I can find is here: http://ift.tt/2ClB2Gy

Which references what is done in this demo: http://ift.tt/2BXKD2Y

As you can see, you can add a field name and field value, but I want this permanent. The other issue that I might need to work around is if I use this demo and add a value and name, this is how everything is posted and I'm not sure how to translate to something my project can understand.

-----------------------------23491353817351
Content-Disposition: form-data; name="This is a field"

Wow
-----------------------------23491353817351
Content-Disposition: form-data; name="RemoteFile"; filename="507-0.jpg"
Content-Type: application/octet-stream

ÿØÿà

If anyone can help, I'd greatly appreciate it. If you also have any other suggestions for web twain related resources, I'd gladly love to see them. This aspect is a necessary part of my project, so unfortunately there's no real way around this besides moving forward, so I'd appreciate any help I can get! :)

Thanks!! Matt



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2CeyYAX
via IFTTT

Aucun commentaire:

Enregistrer un commentaire