[Skip to main content](#vessel-content)

#   Ajax File upload

##

- **[ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")**
- [![ahcopyart's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/27667-ahcopyart "View ahcopyart's Profile") Topic Author
- [ Offline](/forum/user/27667-ahcopyart)

Less More

- Posts: 118
- Thank you received: 3
-
-

12 years 10 months ago [\#140637](#140637) by [ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")  *[Ajax File upload](/forum/26-product-category-display/865206-ajax-file-upload#140637 "-- url of the page with the problem -- :   www.quickcheapprint.co.nz  -- HikaShop version -- : 2.2.3  Hi there, I are playing around with the new ajax file upload. When the user clicks on the icon and uploads the file (or drags the file into the dropzone), it shows the filename and the name runs outside the dropzone and covers up other objects on the page. Is there a way to cut off the end of the filename so it only displays what it can fit within the dropzone?  Thanks Alan")* was created by *[ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")*

-- url of the page with the problem -- : [ www.quickcheapprint.co.nz](http://www.quickcheapprint.co.nz)
-- HikaShop version -- : 2.2.3

Hi there, I are playing around with the new ajax file upload. When the user clicks on the icon and uploads the file (or drags the file into the dropzone), it shows the filename and the name runs outside the dropzone and covers up other objects on the page. Is there a way to cut off the end of the filename so it only displays what it can fit within the dropzone?

Thanks
Alan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjUyMDYtYWpheC1maWxlLXVwbG9hZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 10 months ago [\#140647](#140647) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Ajax File upload](/forum/26-product-category-display/865206-ajax-file-upload#140647 "-- url of the page with the problem -- :   www.quickcheapprint.co.nz  -- HikaShop version -- : 2.2.3  Hi there, I are playing around with the new ajax file upload. When the user clicks on the icon and uploads the file (or drags the file into the dropzone), it shows the filename and the name runs outside the dropzone and covers up other objects on the page. Is there a way to cut off the end of the filename so it only displays what it can fit within the dropzone?  Thanks Alan")*

Hi,

Can you provide a screenshot ?
There are some variables in the views that you can change in order to change the maximum display length.
But I want to be sure that the text is the only responsible for your trouble.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjUyMDYtYWpheC1maWxlLXVwbG9hZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")**
- [![ahcopyart's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/27667-ahcopyart "View ahcopyart's Profile") Topic Author
- [ Offline](/forum/user/27667-ahcopyart)

Less More

- Posts: 118
- Thank you received: 3
-
-

12 years 10 months ago [\#140739](#140739) by [ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")  Replied by *[ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")* on topic *[Ajax File upload](/forum/26-product-category-display/865206-ajax-file-upload#140739 "-- url of the page with the problem -- :   www.quickcheapprint.co.nz  -- HikaShop version -- : 2.2.3  Hi there, I are playing around with the new ajax file upload. When the user clicks on the icon and uploads the file (or drags the file into the dropzone), it shows the filename and the name runs outside the dropzone and covers up other objects on the page. Is there a way to cut off the end of the filename so it only displays what it can fit within the dropzone?  Thanks Alan")*

Sure, here it is.

Thanks
Alan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjUyMDYtYWpheC1maWxlLXVwbG9hZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 10 months ago [\#140803](#140803) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Ajax File upload](/forum/26-product-category-display/865206-ajax-file-upload#140803 "-- url of the page with the problem -- :   www.quickcheapprint.co.nz  -- HikaShop version -- : 2.2.3  Hi there, I are playing around with the new ajax file upload. When the user clicks on the icon and uploads the file (or drags the file into the dropzone), it shows the filename and the name runs outside the dropzone and covers up other objects on the page. Is there a way to cut off the end of the filename so it only displays what it can fit within the dropzone?  Thanks Alan")*

Hi,

You have to override the view "front-end / you template / upload / file_entry" in order to cut the file name which is displayed by this line: Code:

&lt;span class="file_name" style="white-space:nowrap"&gt;&lt;?php echo $this-&gt;params-&gt;file_name; ?&gt;&lt;/span&gt;&lt;br/&gt;

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjUyMDYtYWpheC1maWxlLXVwbG9hZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")**
- [![ahcopyart's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/27667-ahcopyart "View ahcopyart's Profile") Topic Author
- [ Offline](/forum/user/27667-ahcopyart)

Less More

- Posts: 118
- Thank you received: 3
-
-

12 years 10 months ago [\#140934](#140934) by [ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")  Replied by *[ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")* on topic *[Ajax File upload](/forum/26-product-category-display/865206-ajax-file-upload#140934 "-- url of the page with the problem -- :   www.quickcheapprint.co.nz  -- HikaShop version -- : 2.2.3  Hi there, I are playing around with the new ajax file upload. When the user clicks on the icon and uploads the file (or drags the file into the dropzone), it shows the filename and the name runs outside the dropzone and covers up other objects on the page. Is there a way to cut off the end of the filename so it only displays what it can fit within the dropzone?  Thanks Alan")*

Thanks Jerome, I'll go check it out.

Alan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjUyMDYtYWpheC1maWxlLXVwbG9hZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")**
- [![ahcopyart's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/27667-ahcopyart "View ahcopyart's Profile") Topic Author
- [ Offline](/forum/user/27667-ahcopyart)

Less More

- Posts: 118
- Thank you received: 3
-
-

12 years 10 months ago [\#140940](#140940) by [ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")  Replied by *[ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")* on topic *[Ajax File upload](/forum/26-product-category-display/865206-ajax-file-upload#140940 "-- url of the page with the problem -- :   www.quickcheapprint.co.nz  -- HikaShop version -- : 2.2.3  Hi there, I are playing around with the new ajax file upload. When the user clicks on the icon and uploads the file (or drags the file into the dropzone), it shows the filename and the name runs outside the dropzone and covers up other objects on the page. Is there a way to cut off the end of the filename so it only displays what it can fit within the dropzone?  Thanks Alan")*

Might need some more help with this. I altered the line of code to add the "overflow:hidden" attribute but it doesn't seem to change it:
&lt;span class="file_name" style="white-space:nowrap; overflow:hidden;"&gt;&lt;?php echo $this-&gt;params-&gt;file_name; ?&gt;

Should this have worked?
Thanks
Alan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjUyMDYtYWpheC1maWxlLXVwbG9hZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 10 months ago [\#140947](#140947) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Ajax File upload](/forum/26-product-category-display/865206-ajax-file-upload#140947 "-- url of the page with the problem -- :   www.quickcheapprint.co.nz  -- HikaShop version -- : 2.2.3  Hi there, I are playing around with the new ajax file upload. When the user clicks on the icon and uploads the file (or drags the file into the dropzone), it shows the filename and the name runs outside the dropzone and covers up other objects on the page. Is there a way to cut off the end of the filename so it only displays what it can fit within the dropzone?  Thanks Alan")*

Hi,

The span won't overflow because his width his the width of his content.
You should use some other CSS rules, like the max-width.
But the best should still be the modification of the content by the PHP.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjUyMDYtYWpheC1maWxlLXVwbG9hZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")**
- [![ahcopyart's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/27667-ahcopyart "View ahcopyart's Profile") Topic Author
- [ Offline](/forum/user/27667-ahcopyart)

Less More

- Posts: 118
- Thank you received: 3
-
-

12 years 10 months ago [\#140951](#140951) by [ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")  Replied by *[ahcopyart](/forum/user/27667-ahcopyart "View ahcopyart's Profile")* on topic *[Ajax File upload](/forum/26-product-category-display/865206-ajax-file-upload#140951 "-- url of the page with the problem -- :   www.quickcheapprint.co.nz  -- HikaShop version -- : 2.2.3  Hi there, I are playing around with the new ajax file upload. When the user clicks on the icon and uploads the file (or drags the file into the dropzone), it shows the filename and the name runs outside the dropzone and covers up other objects on the page. Is there a way to cut off the end of the filename so it only displays what it can fit within the dropzone?  Thanks Alan")*

Hi, I've just tried various methods in that view and nothing seems to make any difference.
I also tried placing
.file_name into the main HS custom CSS file setting the max width and it made no difference.

Where else can I alter it?
Thanks
Alan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjUyMDYtYWpheC1maWxlLXVwbG9hZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 10 months ago [\#141001](#141001) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Ajax File upload](/forum/26-product-category-display/865206-ajax-file-upload#141001 "-- url of the page with the problem -- :   www.quickcheapprint.co.nz  -- HikaShop version -- : 2.2.3  Hi there, I are playing around with the new ajax file upload. When the user clicks on the icon and uploads the file (or drags the file into the dropzone), it shows the filename and the name runs outside the dropzone and covers up other objects on the page. Is there a way to cut off the end of the filename so it only displays what it can fit within the dropzone?  Thanks Alan")*

Hi,

Maybe something like : Code:

&lt;span class="file_name" style="white-space:nowrap;text-overflow: ellipsis;width:55px"&gt;&lt;?php echo $this-&gt;params-&gt;file_name; ?&gt;&lt;/span&gt;&lt;br/&gt;

where you can change the width in order to feet to your design.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjUyMDYtYWpheC1maWxlLXVwbG9hZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[aheng5](/forum/user/6488-aheng5 "View aheng5's Profile")**
- [![aheng5's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6488.gif)](/forum/user/6488-aheng5 "View aheng5's Profile")
- [ Offline](/forum/user/6488-aheng5)

Less More

- Posts: 73
- Thank you received: 2
-
-

12 years 9 months ago [\#141478](#141478) by [aheng5](/forum/user/6488-aheng5 "View aheng5's Profile")  Replied by *[aheng5](/forum/user/6488-aheng5 "View aheng5's Profile")* on topic *[Ajax File upload](/forum/26-product-category-display/865206-ajax-file-upload#141478 "-- url of the page with the problem -- :   www.quickcheapprint.co.nz  -- HikaShop version -- : 2.2.3  Hi there, I are playing around with the new ajax file upload. When the user clicks on the icon and uploads the file (or drags the file into the dropzone), it shows the filename and the name runs outside the dropzone and covers up other objects on the page. Is there a way to cut off the end of the filename so it only displays what it can fit within the dropzone?  Thanks Alan")*

I'm having problems having the Ajax file upload field to appear even though I have enabled and assigned to right category as an item custom field. Please advise on what I need to do to correct this.

And the field name has underscores in it rather than normal field type name like "ajax upload"

See attached. Thanks

- [ ![haedfb7e.jpg](/forum/attachment/14935) ](/forum/attachment/14935 "haedfb7e.jpg") [ ](/forum/attachment/14935?download=1 "haedfb7e.jpg")
- [ ![h2667657.jpg](/forum/attachment/14936) ](/forum/attachment/14936 "h2667657.jpg") [ ](/forum/attachment/14936?download=1 "h2667657.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjUyMDYtYWpheC1maWxlLXVwbG9hZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[aheng5](/forum/user/6488-aheng5 "View aheng5's Profile")**
- [![aheng5's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6488.gif)](/forum/user/6488-aheng5 "View aheng5's Profile")
- [ Offline](/forum/user/6488-aheng5)

Less More

- Posts: 73
- Thank you received: 2
-
-

12 years 9 months ago [\#141484](#141484) by [aheng5](/forum/user/6488-aheng5 "View aheng5's Profile")  Replied by *[aheng5](/forum/user/6488-aheng5 "View aheng5's Profile")* on topic *[Ajax File upload](/forum/26-product-category-display/865206-ajax-file-upload#141484 "-- url of the page with the problem -- :   www.quickcheapprint.co.nz  -- HikaShop version -- : 2.2.3  Hi there, I are playing around with the new ajax file upload. When the user clicks on the icon and uploads the file (or drags the file into the dropzone), it shows the filename and the name runs outside the dropzone and covers up other objects on the page. Is there a way to cut off the end of the filename so it only displays what it can fit within the dropzone?  Thanks Alan")*

Never mind, found the solution on another thread. Missing CSS code.

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjUyMDYtYWpheC1maWxlLXVwbG9hZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.095 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
