Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users

Dashboard
Notifications
Mark all as read
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

First image file name entry line doesn't work

+2
−0

When you click on the image icon icon to insert an image into a post, you get the popup

Image upload popup

However, there is no way to type the image name there. The cursor isn't put onto the file name entry line, and just typing does nothing. Clicking on the entry line brings up a whole new window:

file uploader with 2 files

In that one you can type the file name.

Either way, the first file name entry line is unusable. It should be either gotten rid of entirely, or be made to work.

I'd prefer the cursor to be pre-set on the first file name entry line, and have it work. That way I can just type the file name without a bunch of extra clicking.

By the way, what's the shortcut key for the image icon icon? The whole process would be much more streamlined if the mouse weren't needed at all. Hovering over the icon only reveals "Insert image".

This is low priority, but it should go on a list somewhere to eventually address.

Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

0 comments

1 answer

+4
−0

That field is a HTML file input field (<input type="file" />). How it renders, beyond very basic styling, is entirely down to your browser, and not something web developers have any control over. Making it possible to type in the file path that you want and have it inserted there is... well, not possible - in theory we could replace it with a custom file field that allows more control, but... that has major downsides like not working at all without JS support, and even if we did that, browser JS doesn't have access to your filesystem so couldn't get the correct file.

So - sorry to disappoint, but [status-declined] to this one on the grounds that it's almost impossible. I will, however, add another voice to those asking for keyboard shortcuts in the post editor - that one's definitely possible.

Why does this post require moderator attention?
You might want to add some details to your flag.

2 comments

OK, thanks for the explanation. Olin Lathrop‭ 12 months ago

JS doesn't have access to your filesystem so couldn't get the correct file - That is the key. Been there, done that, no easy fix across all browsers. manassehkatz‭ 12 months ago

Sign up to answer this question »

This community is part of the Codidact network. We have other communities too — take a look!

You can also join us in chat!

Want to advertise this community? Use our templates!