If you have it too long with too many bends you will be creating a fire hazzard. You need to be able to clean out that dryer vent. If you have it running 15' one way and 10' another with 90 degree turns, then you might run into fire safty issues. If you can put it up against an outside wall, make your hole there on the second story. This will save you money, reduce fire risk greatly, and you wont have to pay a small fortune to have someone run a 30' snake to clean it every year.
Most dryer vent hose is 4" diameter, some oven vent is 6", so you might need an adapter
The other aspect that may need to be addressed is the louvers on the outside. Be sure you dryer exhaust is strong enough to open the louvers or you may have to replace it for one with lighter duty springs.
Best Answer
No. It has to be rigid metal pipe in the wall. Plastic pipe is a fire hazard.
Note that you cannot use screws to attach together metal pipe for dryer vents; lint can collect on it and become a fire hazard.