how to auto-send the internal depended files

2 views
Skip to first unread message

iau...@163.com

unread,
May 7, 2016, 4:22:03 AM5/7/16
to onion-dev

while using libonion, I find that the explorer can't receive the file which included in the html.

how to control the data transfer? can onion auto manager the internal files transfer if necessary?

any help is appreciated.

Zachary Grafton

unread,
May 7, 2016, 4:39:01 AM5/7/16
to iau...@163.com, onion-dev

Hi,
You are probably looking for onion_handler_export_local_new if using the c api. If you are using c++, you'll want to look at Onion::StaticHandler. Those methods will let you serve files from the filesystem. Another option is to use opack to embed the files in your executable.

Zack


--
You received this message because you are subscribed to the Google Groups "onion-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onion-dev+...@coralbits.com.
To post to this group, send email to onio...@coralbits.com.
Visit this group at https://groups.google.com/a/coralbits.com/group/onion-dev/.
For more options, visit https://groups.google.com/a/coralbits.com/d/optout.
Reply all
Reply to author
Forward
0 new messages